##// END OF EJS Templates
uncommit: rename the flag 'empty' to 'keep' which retains empty changeset...
Pulkit Goyal -
r34284:f94442d4 default
parent child Browse files
Show More
@@ -133,7 +133,7 b' def _uncommitdirstate(repo, oldctx, matc'
133 ds.copy(src, dst)
133 ds.copy(src, dst)
134
134
135 @command('uncommit',
135 @command('uncommit',
136 [('', 'empty', False, _('allow an empty commit after uncommiting')),
136 [('', 'keep', False, _('allow an empty commit after uncommiting')),
137 ] + commands.walkopts,
137 ] + commands.walkopts,
138 _('[OPTION]... [FILE]...'))
138 _('[OPTION]... [FILE]...'))
139 def uncommit(ui, repo, *pats, **opts):
139 def uncommit(ui, repo, *pats, **opts):
@@ -163,7 +163,7 b' def uncommit(ui, repo, *pats, **opts):'
163
163
164 with repo.transaction('uncommit'):
164 with repo.transaction('uncommit'):
165 match = scmutil.match(old, pats, opts)
165 match = scmutil.match(old, pats, opts)
166 newid = _commitfiltered(repo, old, match, opts.get('empty'))
166 newid = _commitfiltered(repo, old, match, opts.get('keep'))
167 if newid is None:
167 if newid is None:
168 ui.status(_("nothing to uncommit\n"))
168 ui.status(_("nothing to uncommit\n"))
169 return 1
169 return 1
@@ -30,7 +30,7 b' Help for uncommit'
30
30
31 options ([+] can be repeated):
31 options ([+] can be repeated):
32
32
33 --empty allow an empty commit after uncommiting
33 --keep allow an empty commit after uncommiting
34 -I --include PATTERN [+] include names matching the given patterns
34 -I --include PATTERN [+] include names matching the given patterns
35 -X --exclude PATTERN [+] exclude names matching the given patterns
35 -X --exclude PATTERN [+] exclude names matching the given patterns
36
36
@@ -286,7 +286,7 b' Uncommit leaving an empty changeset'
286 > P
286 > P
287 > EOS
287 > EOS
288 $ hg up Q -q
288 $ hg up Q -q
289 $ hg uncommit --empty
289 $ hg uncommit --keep
290 $ hg log -G -T '{desc} FILES: {files}'
290 $ hg log -G -T '{desc} FILES: {files}'
291 @ Q FILES:
291 @ Q FILES:
292 |
292 |
General Comments 0
You need to be logged in to leave comments. Login now