D3940: rebase: reduce scope of a variable
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Jul 13 08:23:24 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG99ed6e2f6606: rebase: reduce scope of a variable (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3940?vs=9577&id=9583
REVISION DETAIL
https://phab.mercurial-scm.org/D3940
AFFECTED FILES
hgext/rebase.py
CHANGE DETAILS
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -1858,7 +1858,6 @@
extinctnodes = set(cl.node(r) for r in repo.revs('extinct()'))
for srcrev in rebaseobsrevs:
srcnode = cl.node(srcrev)
- destnode = cl.node(destmap[srcrev])
# XXX: more advanced APIs are required to handle split correctly
successors = set(obsutil.allsuccessors(repo.obsstore, [srcnode]))
# obsutil.allsuccessors includes node itself
@@ -1870,6 +1869,7 @@
# no successor
obsoletenotrebased[srcrev] = None
else:
+ destnode = cl.node(destmap[srcrev])
for succnode in successors:
if succnode not in nodemap:
continue
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list