Show More
@@ -727,7 +727,7 b' def extsetup(ui):' | |||||
727 | # An assist for avoiding the dangling-symlink fsevents bug |
|
727 | # An assist for avoiding the dangling-symlink fsevents bug | |
728 | extensions.wrapfunction(os, b'symlink', wrapsymlink) |
|
728 | extensions.wrapfunction(os, b'symlink', wrapsymlink) | |
729 |
|
729 | |||
730 | extensions.wrapfunction(merge, b'update', wrapupdate) |
|
730 | extensions.wrapfunction(merge, b'_update', wrapupdate) | |
731 |
|
731 | |||
732 |
|
732 | |||
733 | def wrapsymlink(orig, source, link_name): |
|
733 | def wrapsymlink(orig, source, link_name): |
@@ -1717,7 +1717,7 b' def overridecat(orig, ui, repo, file1, *' | |||||
1717 | return err |
|
1717 | return err | |
1718 |
|
1718 | |||
1719 |
|
1719 | |||
1720 | @eh.wrapfunction(merge, b'update') |
|
1720 | @eh.wrapfunction(merge, b'_update') | |
1721 | def mergeupdate(orig, repo, node, branchmerge, force, *args, **kwargs): |
|
1721 | def mergeupdate(orig, repo, node, branchmerge, force, *args, **kwargs): | |
1722 | matcher = kwargs.get('matcher', None) |
|
1722 | matcher = kwargs.get('matcher', None) | |
1723 | # note if this is a partial update |
|
1723 | # note if this is a partial update |
@@ -642,7 +642,7 b' class rebaseruntime(object):' | |||||
642 | cmdutil.bailifchanged(repo) |
|
642 | cmdutil.bailifchanged(repo) | |
643 | self.inmemory = False |
|
643 | self.inmemory = False | |
644 | self._assignworkingcopy() |
|
644 | self._assignworkingcopy() | |
645 | mergemod.update( |
|
645 | mergemod._update( | |
646 | repo, |
|
646 | repo, | |
647 | p1, |
|
647 | p1, | |
648 | branchmerge=False, |
|
648 | branchmerge=False, | |
@@ -1517,7 +1517,7 b' def rebasenode(repo, rev, p1, p2, base, ' | |||||
1517 |
|
1517 | |||
1518 | # See explanation in merge.graft() |
|
1518 | # See explanation in merge.graft() | |
1519 | mergeancestor = repo.changelog.isancestor(p1ctx.node(), ctx.node()) |
|
1519 | mergeancestor = repo.changelog.isancestor(p1ctx.node(), ctx.node()) | |
1520 | stats = mergemod.update( |
|
1520 | stats = mergemod._update( | |
1521 | repo, |
|
1521 | repo, | |
1522 | rev, |
|
1522 | rev, | |
1523 | branchmerge=True, |
|
1523 | branchmerge=True, |
@@ -198,7 +198,7 b' class transplanter(object):' | |||||
198 | if pulls: |
|
198 | if pulls: | |
199 | if source != repo: |
|
199 | if source != repo: | |
200 | exchange.pull(repo, source.peer(), heads=pulls) |
|
200 | exchange.pull(repo, source.peer(), heads=pulls) | |
201 | merge.update( |
|
201 | merge._update( | |
202 | repo, pulls[-1], branchmerge=False, force=False |
|
202 | repo, pulls[-1], branchmerge=False, force=False | |
203 | ) |
|
203 | ) | |
204 | p1 = repo.dirstate.p1() |
|
204 | p1 = repo.dirstate.p1() | |
@@ -275,7 +275,7 b' class transplanter(object):' | |||||
275 | tr.close() |
|
275 | tr.close() | |
276 | if pulls: |
|
276 | if pulls: | |
277 | exchange.pull(repo, source.peer(), heads=pulls) |
|
277 | exchange.pull(repo, source.peer(), heads=pulls) | |
278 | merge.update(repo, pulls[-1], branchmerge=False, force=False) |
|
278 | merge._update(repo, pulls[-1], branchmerge=False, force=False) | |
279 | finally: |
|
279 | finally: | |
280 | self.saveseries(revmap, merges) |
|
280 | self.saveseries(revmap, merges) | |
281 | self.transplants.write() |
|
281 | self.transplants.write() |
@@ -1049,7 +1049,7 b' def updaterepo(repo, node, overwrite, up' | |||||
1049 | When overwrite is set, changes are clobbered, merged else |
|
1049 | When overwrite is set, changes are clobbered, merged else | |
1050 |
|
1050 | |||
1051 | returns stats (see pydoc mercurial.merge.applyupdates)""" |
|
1051 | returns stats (see pydoc mercurial.merge.applyupdates)""" | |
1052 | return mergemod.update( |
|
1052 | return mergemod._update( | |
1053 | repo, |
|
1053 | repo, | |
1054 | node, |
|
1054 | node, | |
1055 | branchmerge=False, |
|
1055 | branchmerge=False, |
@@ -1694,7 +1694,7 b" UPDATECHECK_LINEAR = b'linear'" | |||||
1694 | UPDATECHECK_NO_CONFLICT = b'noconflict' |
|
1694 | UPDATECHECK_NO_CONFLICT = b'noconflict' | |
1695 |
|
1695 | |||
1696 |
|
1696 | |||
1697 | def update( |
|
1697 | def _update( | |
1698 | repo, |
|
1698 | repo, | |
1699 | node, |
|
1699 | node, | |
1700 | branchmerge, |
|
1700 | branchmerge, | |
@@ -2045,7 +2045,7 b' def merge(ctx, labels=None, force=False,' | |||||
2045 | force = whether the merge was run with 'merge --force' (deprecated) |
|
2045 | force = whether the merge was run with 'merge --force' (deprecated) | |
2046 | """ |
|
2046 | """ | |
2047 |
|
2047 | |||
2048 | return update( |
|
2048 | return _update( | |
2049 | ctx.repo(), |
|
2049 | ctx.repo(), | |
2050 | ctx.rev(), |
|
2050 | ctx.rev(), | |
2051 | labels=labels, |
|
2051 | labels=labels, | |
@@ -2062,7 +2062,7 b' def clean_update(ctx, wc=None):' | |||||
2062 | This involves updating to the commit and discarding any changes in the |
|
2062 | This involves updating to the commit and discarding any changes in the | |
2063 | working copy. |
|
2063 | working copy. | |
2064 | """ |
|
2064 | """ | |
2065 | return update(ctx.repo(), ctx.rev(), branchmerge=False, force=True, wc=wc) |
|
2065 | return _update(ctx.repo(), ctx.rev(), branchmerge=False, force=True, wc=wc) | |
2066 |
|
2066 | |||
2067 |
|
2067 | |||
2068 | def revert_to(ctx, matcher=None, wc=None): |
|
2068 | def revert_to(ctx, matcher=None, wc=None): | |
@@ -2072,7 +2072,7 b' def revert_to(ctx, matcher=None, wc=None' | |||||
2072 | be the same as in the given commit. |
|
2072 | be the same as in the given commit. | |
2073 | """ |
|
2073 | """ | |
2074 |
|
2074 | |||
2075 | return update( |
|
2075 | return _update( | |
2076 | ctx.repo(), |
|
2076 | ctx.repo(), | |
2077 | ctx.rev(), |
|
2077 | ctx.rev(), | |
2078 | branchmerge=False, |
|
2078 | branchmerge=False, | |
@@ -2123,7 +2123,7 b' def graft(' | |||||
2123 | or pctx.rev() == base.rev() |
|
2123 | or pctx.rev() == base.rev() | |
2124 | ) |
|
2124 | ) | |
2125 |
|
2125 | |||
2126 | stats = update( |
|
2126 | stats = _update( | |
2127 | repo, |
|
2127 | repo, | |
2128 | ctx.node(), |
|
2128 | ctx.node(), | |
2129 | True, |
|
2129 | True, | |
@@ -2166,7 +2166,7 b' def back_out(ctx, parent=None, wc=None):' | |||||
2166 | b"must specify parent of merge commit to back out" |
|
2166 | b"must specify parent of merge commit to back out" | |
2167 | ) |
|
2167 | ) | |
2168 | parent = ctx.p1() |
|
2168 | parent = ctx.p1() | |
2169 | return update( |
|
2169 | return _update( | |
2170 | ctx.repo(), |
|
2170 | ctx.repo(), | |
2171 | parent, |
|
2171 | parent, | |
2172 | branchmerge=True, |
|
2172 | branchmerge=True, |
General Comments 0
You need to be logged in to leave comments.
Login now