Mercurial path info - equivalent of SVN info
I want to get an output (for parsing) for HG repository similar to Subversions info command. In other w开发者_如何学运维ords - is there any way in Mercurial to get the following data for specific path and revision:
- type (file/folder)
- size (if type=file)
- last edited changeset
Thank you all very much in advance.
- Mercurial doesn’t store directories, but some information can be had via
hg -v manifest
. - I don’t know anything specific, but you can use
hg cat
andwc -c
. - Use
hg log -l1
on the file.
精彩评论