The keyword replacing Mercurial

I would have a question about Mercurial with a keyword extension extension: is it possible to expand the actual commit message with the keyword so that it appears in the sources for a quick link, what's in the sources?

Edit: this works:

in hgrc repo

Log={desc}

But it does not add up, as its CVS counterpart claims.

Use the source, Luke:

Extensions spanning more than one line and incremental extensions like CVS '$ Log $ are not supported. The keyword template map "Log = {desc}" expands to the first line of the change set description.

+5
source share
1 answer

, , CVS, . hg help keyword .

{desc} Mercurial,

[keywordmaps]
Log = {desc}

[keyword]
**.c =

$Log$ .c.

, CVS- , . Mercurial .

$ hg commit -m "Fixed bug 123" foo.c    # create changeset 10:84e0d0dc9ce5
$ hg commit -m "Fixed bug 234" bar.c    # create changeset 11:2e85d7f2f93e

, foo.c 10, , 11 bar.c. foo.c 11 - , bar.c foo.c, 11 foo.c, bar.c.

, : $Log: Fixed bug 123 $ foo.c $Log: Fixed bug 234 $ bar.c 2e85d7f2f93e.

, , , . - , ! - . , version.h , .

hg id Makefile. - :

$ hg parents --template '{latesttag}+{latesttagdistance}-{node|short}\n'

2.1+117-eed1e5bba9a8. , (eed1e5bba9a8) 117 (2.1). , , , .

+6

All Articles