开发者

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:

  1. type (file/folder)
  2. size (if type=file)
  3. last edited changeset

Thank you all very much in advance.


  1. Mercurial doesn’t store directories, but some information can be had via hg -v manifest.
  2. I don’t know anything specific, but you can use hg cat and wc -c.
  3. Use hg log -l1 on the file.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜