##// END OF EJS Templates
rebase: avoid converting from nodes to revnums twice...
Martin von Zweigbergk -
r38694:0f8599af default
parent child Browse files
Show More
@@ -1869,19 +1869,17 b' def _computeobsoletenotrebased(repo, reb'
1869 1869 # no successor
1870 1870 obsoletenotrebased[srcrev] = None
1871 1871 else:
1872 destnode = cl.node(destmap[srcrev])
1873 for succnode in successors:
1874 if succnode not in nodemap:
1875 continue
1876 if cl.isancestor(succnode, destnode):
1877 obsoletenotrebased[srcrev] = nodemap[succnode]
1872 dstrev = destmap[srcrev]
1873 succrevs = [nodemap[s] for s in successors if s in nodemap]
1874 for succrev in succrevs:
1875 if cl.isancestorrev(succrev, dstrev):
1876 obsoletenotrebased[srcrev] = succrev
1878 1877 break
1879 1878 else:
1880 1879 # If 'srcrev' has a successor in rebase set but none in
1881 1880 # destination (which would be catched above), we shall skip it
1882 1881 # and its descendants to avoid divergence.
1883 if any(nodemap[s] in destmap for s in successors
1884 if s in nodemap):
1882 if any(s in destmap for s in succrevs):
1885 1883 obsoletewithoutsuccessorindestination.add(srcrev)
1886 1884
1887 1885 return (
General Comments 0
You need to be logged in to leave comments. Login now