hg cat and renamed files
Bastian Doetsch
bastian.doetsch at gmx.de
Wed Nov 19 23:09:55 UTC 2008
Am Mittwoch, den 19.11.2008, 16:51 -0600 schrieb Matt Mackall:
> On Wed, 2008-11-19 at 23:19 +0100, Bastian Doetsch wrote:
> > Hi there,
> >
> > iirc, hg cat doesn't follow renames. Are there plans to support this
> > in the future?
>
> First, let me point out that cat shouldn't follow renames by default.
> If you say 'hg cat -r 1.0 Makefile', we assume you are asking for the
> contents of Makefile at revision 1.0 regardless of whether or not that
> file later got replaced by another file named, say,
> 'Makefile.experimental', which was *not the file actually used by Make*
> to build your project.
>
> In other words, file *names* usually have semantic precedence over file
> *histories* because file *names* are what users and programs generally
> operate on.
Yep, I agree.
>
> That said, it'd probably make sense to add a --follow meaning "follow
> the contents of the file currently named x back in history to rev X".
> But note that this operation is not well-defined! If one user renames
> Makefile.experimental to Makefile and merges, there are now two files
> with legitimate claim to being the ancestor at 1.0. We'd probably show
> the latter here, because of the aforementioned semantic precedence
> issues.
Excellent, a --follow would be what I was hoping for and the described
behaviour would exactly be what at least I would expect.
Now I can only hopes, somebody steps ahead and adds the option :)).
Unfortunately, I know basically nothing about coding in python...
Thanks,
Bastian
> > _______________________________________________
> > Mercurial mailing list
> > Mercurial at selenic.com
> > http://selenic.com/mailman/listinfo/mercurial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081120/281c9436/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081120/281c9436/attachment-0001.asc>
More information about the Mercurial
mailing list