Mercurial > hg > evolve
changeset 1908:5217c745bb60 stable
evolve: extend API fix from 25254b2f8116 to another relevant case
For some reason, only part of this API change got fixes. Test did not caught
this because 'False' is a valid revision number (0) and update force did not
mind using it as an ancestors. The API changed in Mercurial 43c00ca887d1
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Feb 2017 16:33:17 +0100 |
parents | 54120614e9e5 |
children | 02e2defd28e9 |
files | README hgext/evolve.py |
diffstat | 2 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/README +++ b/README @@ -56,6 +56,10 @@ Changelog ========= +5.6.1 -- 2017-02-28 + + - fix a crash that sometime happened when evolving merges. + 5.6.0 -- 2017-02-01 - compatibility with Mercurial 4.1.
--- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -4146,7 +4146,19 @@ """Used by the evolve function to merge dest on top of pctx. return the same tuple as merge.graft""" if repo['.'].rev() != dest.rev(): - merge.update(repo, dest, False, True, False) + #assert False + try: + merge.update(repo, + dest, + branchmerge=False, + force=True) + except TypeError: + # Mercurial < 43c00ca887d1 (3.7) + merge.update(repo, + dest, + branchmerge=False, + force=True, + partial=False) if bmactive(repo): repo.ui.status(_("(leaving bookmark %s)\n") % bmactive(repo)) bmdeactivate(repo)