##// END OF EJS Templates
index: use `index.get_rev` in `rebase.successorrevs`...
marmoute -
r43966:054846d2 default
parent child Browse files
Show More
@@ -1643,10 +1643,11 b' def _checkobsrebase(repo, ui, rebaseobsr'
1643 def successorrevs(unfi, rev):
1643 def successorrevs(unfi, rev):
1644 """yield revision numbers for successors of rev"""
1644 """yield revision numbers for successors of rev"""
1645 assert unfi.filtername is None
1645 assert unfi.filtername is None
1646 nodemap = unfi.changelog.nodemap
1646 get_rev = unfi.changelog.index.get_rev
1647 for s in obsutil.allsuccessors(unfi.obsstore, [unfi[rev].node()]):
1647 for s in obsutil.allsuccessors(unfi.obsstore, [unfi[rev].node()]):
1648 if s in nodemap:
1648 r = get_rev(s)
1649 yield nodemap[s]
1649 if r is not None:
1650 yield r
1650
1651
1651
1652
1652 def defineparents(repo, rev, destmap, state, skipped, obsskipped):
1653 def defineparents(repo, rev, destmap, state, skipped, obsskipped):
General Comments 0
You need to be logged in to leave comments. Login now