Proper tracking of file-level operations: rename, directories, merges

Colin D Bennett colin at gibibit.com
Fri Oct 21 16:50:01 UTC 2011


On Fri, 21 Oct 2011 09:22:08 +0200
Martin Geisler <mg at aragost.com> wrote:

> Colin D Bennett <colin at gibibit.com> writes:
> 
> > On Fri, 21 Oct 2011 08:57:00 +1100
> > Ben Finney <ben+bazaar at benfinney.id.au> wrote:
> >
> >>...
> >> $ hg status
> >> A bar/beans
> >> A bar/eggs
> >> A bar/spam
> >> R foo/beans
> >> R foo/eggs
> >> R foo/spam
> >> =====
> >
> > It took me a moment to see the significance of this behavior of
> > hg:
> >
> > You can't distinguish the single file with modified content
> > from the other files which have no content change.
> 
> That is false. After renaming and modifying the file, you get:
> 
>   $ hg status -C
>   A bar/beans
>     foo/beans
>   A bar/eggs
>     foo/eggs
>   A bar/spam
>     foo/spam
>   R foo/beans
>   R foo/eggs
>   R foo/spam
> 
> Not pretty, but it shows where each file was renamed from. To see
> the modifications you use 'hg diff':
>...

My point still stands: you can't look at the 'status' summary
output and see which file was changed an which was merely renamed.

Diff is not a substitute for this, because I don't want to wade
through a many-page diff just to see which files changed.
Sure, it's just output, I understand Mercurial has the information,
but that's little help to the user who wants it to “just work.”

Regards,
Colin



More information about the bazaar mailing list