List of changed files during pull
konrad.hinsen at laposte.net
Thu Apr 12 03:02:49 CDT 2007
On 11.04.2007, at 15:11, Konrad Hinsen wrote:
> I am looking for a way to obtain the list of all files that have been
> modified after doing "hg pull -u". Normally, Mercurial just tells me
> how many files were changed, but not which ones. Is there a simpler
> way than noting the tip changeset before the pull, pulling, and
> listing all the changesets that have been added one by one?
Thanks to all who sent suggestions. The one that I like best for my
application (I want to obtain the list of changed in a script that
updates and eventually recompiles code regularly from a published
Mercurial archive) is
hg pull ...
hg status --rev tip
The "hg status" must be done before the update. Specifying a revision
with hg status seems to be a new feature in Mercurial 0.9.3, as it
doesn't work with 0.9.2. Thanks to TK Soh for this idea!
More information about the Mercurial