equal
deleted
inserted
replaced
169 b'edit': True, |
169 b'edit': True, |
170 b'interactive': True, |
170 b'interactive': True, |
171 b'message': header + ctx.description(), |
171 b'message': header + ctx.description(), |
172 } |
172 } |
173 ) |
173 ) |
|
174 origctx = repo[b'.'] |
174 commands.commit(ui, repo, **pycompat.strkwargs(opts)) |
175 commands.commit(ui, repo, **pycompat.strkwargs(opts)) |
175 newctx = repo[b'.'] |
176 newctx = repo[b'.'] |
176 committed.append(newctx) |
177 # Ensure user didn't do a "no-op" split (such as deselecting |
|
178 # everything). |
|
179 if origctx.node() != newctx.node(): |
|
180 committed.append(newctx) |
177 |
181 |
178 if not committed: |
182 if not committed: |
179 raise error.InputError(_(b'cannot split an empty revision')) |
183 raise error.InputError(_(b'cannot split an empty revision')) |
180 |
184 |
181 scmutil.cleanupnodes( |
185 scmutil.cleanupnodes( |