Comments
Patch
@@ -57,5 +57,8 @@
* `hg.merge()` has lost its `abort` argument. Please call
`hg.abortmerge()` directly instead.
+ * `hg.merge()` has lost its `mergeforce` argument. It should have
+ only ever been called with the same value as the `force` argument.
+
* The `*others` argument of `cmdutil.check_incompatible_arguments()`
changed from being varargs argument to being a single collection.
@@ -1137,7 +1137,7 @@
def merge(
- repo, node, force=False, remind=True, mergeforce=False, labels=None,
+ repo, node, force=False, remind=True, labels=None,
):
"""Branch merge with node, resolving changes. Return true if any
unresolved conflicts."""
@@ -1146,7 +1146,7 @@
node,
branchmerge=True,
force=force,
- mergeforce=mergeforce,
+ mergeforce=force,
labels=labels,
)
_showstats(repo, stats)
@@ -4909,9 +4909,7 @@
with ui.configoverride(overrides, b'merge'):
force = opts.get(b'force')
labels = [b'working copy', b'merge rev']
- return hg.merge(
- repo, node, force=force, mergeforce=force, labels=labels
- )
+ return hg.merge(repo, node, force=force, labels=labels)
statemod.addunfinished(