开发者

In Mercurial (Hg), what is a good way to list all files modified by me since revision 4822?

I may do development work for 2 weeks before one or tw开发者_JS百科o features get pushed to all the production servers, and since this is a Ruby on Rails project, many files can be modified.

So using Mercurial as the source control, is there a good way to list all filenames that are modified (or added) by me, between the current version and revision 4822? (the number 4822 is before I do the first hg push, I do an hg out and see that the changeset that will go out is 4823, so I will diff with 4822)

(Update: This is to list files only modified by me, as opposed to the other 38 files modified by my teammates)

Better yet, is there a good way to invoke hg vdiff automatically, so when invoked as

checkdiff Peter 4822

It will do

hg vdiff -r 4822 [... the list of filenames modified by Peter (or me) since 4822]


Maybe use hg log and some nice one-liner?

hg log --user Peter --verbose | grep files | sed -e 's/files://' | tr ' ' '\n' | sort | uniq will give all files modified by you since beginning of repository. Use --rev to limit revision scope.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜