Show More
@@ -4857,6 +4857,8 b' def merge(ui, repo, node=None, **opts):' | |||||
4857 | ) |
|
4857 | ) | |
4858 | if node: |
|
4858 | if node: | |
4859 | raise error.Abort(_(b"cannot specify a node with --abort")) |
|
4859 | raise error.Abort(_(b"cannot specify a node with --abort")) | |
|
4860 | return hg.abortmerge(repo.ui, repo) | |||
|
4861 | ||||
4860 | if opts.get(b'rev') and node: |
|
4862 | if opts.get(b'rev') and node: | |
4861 | raise error.Abort(_(b"please specify just one revision")) |
|
4863 | raise error.Abort(_(b"please specify just one revision")) | |
4862 | if not node: |
|
4864 | if not node: | |
@@ -4865,7 +4867,7 b' def merge(ui, repo, node=None, **opts):' | |||||
4865 | if node: |
|
4867 | if node: | |
4866 | node = scmutil.revsingle(repo, node).node() |
|
4868 | node = scmutil.revsingle(repo, node).node() | |
4867 |
|
4869 | |||
4868 |
if not node |
|
4870 | if not node: | |
4869 | if ui.configbool(b'commands', b'merge.require-rev'): |
|
4871 | if ui.configbool(b'commands', b'merge.require-rev'): | |
4870 | raise error.Abort( |
|
4872 | raise error.Abort( | |
4871 | _( |
|
4873 | _( | |
@@ -4898,7 +4900,6 b' def merge(ui, repo, node=None, **opts):' | |||||
4898 | force=force, |
|
4900 | force=force, | |
4899 | mergeforce=force, |
|
4901 | mergeforce=force, | |
4900 | labels=labels, |
|
4902 | labels=labels, | |
4901 | abort=abort, |
|
|||
4902 | ) |
|
4903 | ) | |
4903 |
|
4904 | |||
4904 |
|
4905 |
General Comments 0
You need to be logged in to leave comments.
Login now