Submitter | phabricator |
---|---|
Date | Nov. 9, 2019, 5:20 a.m. |
Message ID | <23d9cce9d2da89c059d5e1a95211870c@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/43038/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -2565,8 +2565,8 @@ repo = repo.unfiltered() # Find all nodes that need to be stripped # (we use %lr instead of %ln to silently ignore unknown items) - nm = repo.changelog.nodemap - nodes = sorted(n for n in nodes if n in nm) + has_node = repo.changelog.index.has_node + nodes = sorted(n for n in nodes if has_node(n)) roots = [c.node() for c in repo.set(b"roots(%ln)", nodes)] if roots: backup = not nobackup