Changed files in changeset?
Kurt Granroth
kurt.mercurial at granroth.com
Tue Nov 6 19:36:05 CST 2007
Giorgos Keramidas wrote:
> On 2007-11-05 21:41, Kurt Granroth <kurt.mercurial at granroth.com> wrote:
>> Is there an easy way to get the list of files modified by a patchset?
>> I'm thinking along the lines of darcs' support whereby 'changes' will
>> show you the files like so:
>>
>> M myfile +5-10
>> R gone
>> A newfile
>
> This looks remarkably similar to diffstat(1) output (especially the
> +lines-lines part). I'm not sure if something like "hg stat" is
> possible, but I very often 'look' at diffs & changesets with:
>
> hg export REV | diffstat -p1
>
Indeed! It looks like 'diffstat' *almost* does what I need. diffstat
shows lines changed, removed, and modified... but there's no way that I
can tell that will produce a 'new file' or 'remove file' report. Alas..
Dustin Sallings wrote:
> I'm not sure about that such a thing, but you can do this:
>
> hg log -r [revision] --template '{files}\n'
Thanks for the pointer... that's even closer. I notice from the docs
that there are template keywords for 'file_adds' and 'file_dels'. Those
doesn't seem to work, though. I tried adding a file and doing this, but
it showed empty:
hg log -l 1 --template '{file_adds}'
If those two worked and if there was a '{file_mods}', then that would be
*exactly* what I was looking for.
Kurt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://selenic.com/pipermail/mercurial/attachments/20071106/29b213db/attachment.pgp
More information about the Mercurial
mailing list