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