开发者

hg equivalent of svn info

I'm switching from svn to hg. Each of my separate projects is in it's own subdirectory. In my svn projects I was calculatin开发者_Python百科g the integer version no. of a project by running svn info from a Makefile. Is there an hg equivalent for this, that would let me know the version # of each project in it's own subdirectory? I've looked at hg summary, but that just seems to give the version # of the whole repository, not the directory the command is run in.

TY, Fred


Try this:

hg id

or if you really want to get fancy:

hg log --template '{latesttag}-{latesttagdistance}-{node}' -r .

which, if you're tagging releases gets you something like this:

1.0.1-10-6746879deadbeef05


I don't think there is a single command. The previous answers focused on displaying the status of the repo tip. Add

hg paths

for repo's URL.


You may also try,

hg log -r .

for a better output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜