[PATCH 3 of 4 V6 STABLE] revert: suggest update on revert to non-parent

Matt Mackall mpm at selenic.com
Tue Jun 21 16:06:43 CDT 2011


On Tue, 2011-06-21 at 09:31 +0200, Adrian Buehlmann wrote:
> On 2011-06-21 06:11, Kevin Bullock wrote:
> > # HG changeset patch
> > # User Kevin Bullock <kbullock at ringworld.org>
> > # Date 1308626766 18000
> > # Branch stable
> > # Node ID ee0ea22c40b86d58437630881ec5ea1815ebe354
> > # Parent  59f92ee58bc1ff014d11d009ab8e39ae86fb5af7
> > revert: suggest update on revert to non-parent
> > 
> > uncommitted changes, revert to non-parent:
> > 
> >  BEFORE:
> >    $ hg revert -d 2011-05-05
> >    Found revision 7423 from Thu May 05 19:56:05 2011 +0200
> >    abort: no files or directories specified
> >    (use --all to discard all changes)
> > 
> >  AFTER:
> >    $ hg revert -d 2011-05-05
> >    Found revision 7423 from Thu May 05 19:56:05 2011 +0200
> >    uncommitted changes

I don't like the introduction of this new ui.write. Either this text
should be in the abort hint, or not exist at all.

This is why I earlier proposed:

([state note,] action hint)

..as the general form of these commands.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list