compat: always use the strip revset from core
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 28 Feb 2017 14:28:54 +0100
changeset 1833 545761a5a5b3
parent 1832 41b531dab3ad
child 1834 f23a97d14895
compat: always use the strip revset from core We only support versions that defines it.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Tue Feb 28 14:28:23 2017 +0100
+++ b/hgext3rd/evolve/__init__.py	Tue Feb 28 14:28:54 2017 +0100
@@ -2370,14 +2370,7 @@
         nodetobookmarks.setdefault(node, []).append(mark)
     for marks in nodetobookmarks.values():
         if bookmarks.issuperset(marks):
-           if util.safehasattr(repair, 'stripbmrevset'):
-               rsrevs = repair.stripbmrevset(repo, marks[0])
-           else:
-               rsrevs = repo.revs("ancestors(bookmark(%s)) - "
-                                  "ancestors(head() and not bookmark(%s)) - "
-                                  "ancestors(bookmark() and not bookmark(%s)) - "
-                                  "obsolete()",
-                                  marks[0], marks[0], marks[0])
+           rsrevs = repair.stripbmrevset(repo, marks[0])
            revs = set(revs)
            revs.update(set(rsrevs))
            revs = sorted(revs)