--- a/hgext/evolve.py Tue Jun 26 16:12:52 2012 +0200
+++ b/hgext/evolve.py Sat Jun 23 19:24:37 2012 +0200
@@ -564,7 +564,8 @@
ds.copy(src, dst)
@command('^uncommit',
- [] + commands.walkopts,
+ [('a', 'all', None, _('uncommit all changes when no arguments given')),
+ ] + commands.walkopts,
_('[OPTION]... [NAME]'))
def uncommit(ui, repo, *pats, **opts):
"""move changes from parent revision to working directory
@@ -597,7 +598,8 @@
updatebookmarks = _bookmarksupdater(repo, old.node())
# Recommit the filtered changeset
newid = None
- if pats or opts.get('include') or opts.get('exclude'):
+ if (pats or opts.get('include') or opts.get('exclude')
+ or opts.get('all')):
match = scmutil.match(old, pats, opts)
newid = _commitfiltered(repo, old, match)
if newid is None: