Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 25657:dcc56e10c23b
revert: change the direction of revert -i
After the discussion on the list about hg revert -i, it seems like we are
satisfied with what we called proposition 2. It shows the changes to revert in
the same direction as hg diff. This patch makes it the default option.
It changes all the + in - and vice versa in the tests for revert -i.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 23 Jun 2015 14:28:15 -0700 |
parents | c2a4dfe2a336 |
children | 328739ea70c3 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Jun 23 13:46:58 2015 -0700 +++ b/mercurial/cmdutil.py Tue Jun 23 14:28:15 2015 -0700 @@ -3102,7 +3102,7 @@ diffopts.git = True reversehunks = repo.ui.configbool('experimental', 'revertalternateinteractivemode', - False) + True) if reversehunks: diff = patch.diff(repo, ctx.node(), None, m, opts=diffopts) else: