Get list of files added/modified/deleted from specific revision
Matt Mackall
mpm at selenic.com
Tue Jun 2 16:03:21 CDT 2009
On Tue, 2009-06-02 at 16:58 -0400, Dave Mateer wrote:
> We are using Mercurial to share Xml data files between
> sometimes-connected users. The Xml files are generated from a
> relational database, and upon an “hg pull”, the relational database is
> updated based on the changes in the Xml files.
>
>
>
> For the current user, I know the last changeset that was a result of
> an update from the relational database. What I want to find out is,
> after all the hg pull / merge / commit is complete, what files to I
> need to update from the repository into the relational database?
>
>
>
> I’m new to Mercurial, so I’m running this solution sketch past you
> experts to let me know of (a) easier ways, (b) pitfalls to avoid, (c)
> why this won’t work, etc.
>
>
>
> First, I convert the changesetid of the last revision from the
> database into a local revision number. (The changeset id is stored in
> the database.) Suppose that resolves to “3”.
Not sure why you're doing that.
> Then I am running:
>
> hg log -r3:tip --template '{files}\n'
You probably want status with the --rev parameter.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list