hg log --limit 1 file would do the trick only for the given file, so if
a repository has n files this command would have to be run n times. for
projects having more than 1000 files this doesn't sound reasonable when
you have to get this information e.g. from java parsing the output of
1000 log commands. running hg log with parsable list of files might
enough, but it's still not the point.
IMO Mercurial lacks the feature that would easily indicate last
modification revision. SVN and CVS provide an easy way to discover e.g
last author of a file. It seems that in Mercurial there's no such thing
as a pair 'file last_revision' (may be relative to the working
directory), but that makes a lot of sense.
Brendan Cully wrote:
> Brendan Cully <brendan@kublai.com> added the comment:
>
> On Thursday, 06 September 2007 at 14:31, Łukasz Błoński wrote:
>
>> New submission from Łukasz Błoński <yapko@hot.pl>:
>>
>> mercurial should provide an easy (scriptable) way to show information about last
>> modification of a file or group of files. what I mean is that e.g. running 'hg
>> debugstate' or 'hg manifest' or maybe even 'hg log' should not only indicate
>> file state, but also revision it was last modified.
>>
>> it could also be partially solved by adding a style to {files} keyword, to
>> display each file in a new line
>>
>
> hg log --limit 1 file
>
> ----------
> nosy: +brendan
> status: unread -> chatting
>
> ____________________________________________________
> Mercurial issue tracker <mercurial-bugs@selenic.com>
> <http://www.selenic.com/mercurial/bts/issue730>
> ____________________________________________________
>
>
|