--- a/hgext3rd/topic/__init__.py Fri Sep 01 16:51:49 2017 +0200
+++ b/hgext3rd/topic/__init__.py Fri Sep 01 17:04:21 2017 +0200
@@ -525,9 +525,9 @@
"""
# copied from mercurial.repair.stripbmrevset
- bookrevset = ("ancestors(bookmark(%s)) - ancestors(head() and not "
- "bookmark(%s)) - ancestors(bookmark() and not "
- "bookmark(%s))")
+ bookrevset = ("not public() and (ancestors(bookmark(%s)) - ancestors(head()"
+ "and not bookmark(%s)) - ancestors(bookmark()"
+ "and not bookmark(%s)))")
touchedrevs = repo.revs(bookrevset, bmark, bmark, bmark)
rewrote = _changetopics(ui, repo, touchedrevs, bmark)
# We didn't changed topic to any changesets because the revset