Mercurial > evolve
changeset 4508:fce8f5ca10d8 stable
branching: merge default change into stable
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 11 Apr 2019 21:12:09 +0200 |
parents | de9089514833 (current diff) 84512556e148 (diff) |
children | 5875079f2ff5 |
files | |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/cmdrewrite.py Thu Apr 11 22:13:55 2019 +0200 +++ b/hgext3rd/evolve/cmdrewrite.py Thu Apr 11 21:12:09 2019 +0200 @@ -605,8 +605,13 @@ # uncommit a removed file partially. # TODO: wrap the operations in mercurial/patch.py and mercurial/crecord.py # to add uncommit as an operation taking care of BC. - chunks, opts = cmdutil.recordfilter(repo.ui, originalchunks, - operation='discard') + try: + chunks, opts = cmdutil.recordfilter(repo.ui, originalchunks, match, + operation='discard') + except TypeError: + # hg <= 4.9 (db72f9f6580e) + chunks, opts = cmdutil.recordfilter(repo.ui, originalchunks, + operation='discard') if not chunks: raise error.Abort(_("nothing selected to uncommit")) fp = stringio()