Get the parent(s) of a file ?

Mathieu Clabaut mathieu.clabaut at gmail.com
Thu Jul 20 11:37:15 UTC 2006


I attach Benoit's patch in order to let other reader review it more easily
:-)
(yes, in fact I'm interested to see this feature make its way into official
mercurial repository)

-mathieu

On 7/17/06, Benoit Boissinot <bboissin at gmail.com> wrote:
>
> On 7/16/06, Mathieu Clabaut <mathieu.clabaut at gmail.com> wrote:
> > [snip]
> >  Is there a way to easily get the parent ? I can of course do a "hg
> > log file" and then parse the result, but I think it will be an often
> > needed function.
> >  May we add the possibility to get the parent of a file :
> >    hg parent [FILE]
>
> I added hg parent -r/--rev [FILE] at
> http://hg.intevation.org/mercurial/tonfa-experimental (with other
> fixes to context.py)
>
> regards,
>
> Benoit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20060720/cc133c6c/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tonfa-experimental-parents-for-file.patch
Type: text/x-patch
Size: 1873 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20060720/cc133c6c/attachment-0001.bin>


More information about the Mercurial mailing list