inhibit: respect '--keep' when handling rebase clean up stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 19 Oct 2017 19:56:18 +0200
branchstable
changeset 3077 b76fe277cef2
parent 3069 1893bde71ebc
child 3078 1e29cdd9c022
child 3088 b3efdd407f30
child 3089 e6455324fc65
inhibit: respect '--keep' when handling rebase clean up
hgext3rd/evolve/hack/inhibit.py
--- a/hgext3rd/evolve/hack/inhibit.py	Sat Oct 14 18:55:43 2017 +0200
+++ b/hgext3rd/evolve/hack/inhibit.py	Thu Oct 19 19:56:18 2017 +0200
@@ -236,8 +236,11 @@
     repo._obsoletenotrebased = r.keys()
     return r
 
-def _clearrebased(orig, ui, repo, *args, **kwargs):
-    r = orig(ui, repo, *args, **kwargs)
+def _clearrebased(orig, ui, repo, dest, state, skipped, collapsedas=None,
+                  keepf=False):
+    r = orig(ui, repo, dest, state, skipped, collapsedas, keepf)
+    if keepf:
+        return r
     tonode = repo.changelog.node
     if util.safehasattr(repo, '_obsoletenotrebased'):
         _deinhibitmarkers(repo, [tonode(k) for k in repo._obsoletenotrebased])