hg cat and renamed files
Matt Mackall
mpm at selenic.com
Thu Nov 20 00:37:35 UTC 2008
On Wed, 2008-11-19 at 16:05 -0800, Mike Kupfer wrote:
> >>>>> "Matt" == Matt Mackall <mpm at selenic.com> writes:
>
> Matt> First, let me point out that cat shouldn't follow renames by
> Matt> default.
> [...]
> Matt> That said, it'd probably make sense to add a --follow meaning
> Matt> "follow the contents of the file currently named x back in history
> Matt> to rev X".
>
> We recently had a user complaining about a similar problem with diff.
> If he wants to see the changes to a file prior to a rename, he has to
> dig out the old name in order to get useful output. Would it make sense
> to add --follow to diff?
Maybe, provided we can come up with some well-defined semantics that
people are happy with beyond "do what I mean".
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list