equal
deleted
inserted
replaced
22 commands, |
22 commands, |
23 error, |
23 error, |
24 hg, |
24 hg, |
25 obsolete, |
25 obsolete, |
26 phases, |
26 phases, |
|
27 pycompat, |
27 registrar, |
28 registrar, |
28 revsetlang, |
29 revsetlang, |
29 scmutil, |
30 scmutil, |
30 ) |
31 ) |
31 |
32 |
158 opts.update({ |
159 opts.update({ |
159 'edit': True, |
160 'edit': True, |
160 'interactive': True, |
161 'interactive': True, |
161 'message': header + ctx.description(), |
162 'message': header + ctx.description(), |
162 }) |
163 }) |
163 commands.commit(ui, repo, **opts) |
164 commands.commit(ui, repo, **pycompat.strkwargs(opts)) |
164 newctx = repo['.'] |
165 newctx = repo['.'] |
165 committed.append(newctx) |
166 committed.append(newctx) |
166 |
167 |
167 if not committed: |
168 if not committed: |
168 raise error.Abort(_('cannot split an empty revision')) |
169 raise error.Abort(_('cannot split an empty revision')) |