##// END OF EJS Templates
exchange: extract a function to sort obsolete markers...
Denis Laxalde -
r43571:48b9fbfb default
parent child Browse files
Show More
@@ -99,6 +99,11 b' class bundlespec(object):'
99 contentopts = attr.ib()
99 contentopts = attr.ib()
100
100
101
101
102 def _sortedmarkers(markers):
103 # last item of marker tuple ('parents') may be None or a tuple
104 return sorted(markers, key=lambda m: m[:-1] + (m[-1] or (),))
105
106
102 def parsebundlespec(repo, spec, strict=True):
107 def parsebundlespec(repo, spec, strict=True):
103 """Parse a bundle string specification into parts.
108 """Parse a bundle string specification into parts.
104
109
@@ -2567,8 +2572,7 b' def _getbundleobsmarkerpart('
2567 heads = repo.heads()
2572 heads = repo.heads()
2568 subset = [c.node() for c in repo.set(b'::%ln', heads)]
2573 subset = [c.node() for c in repo.set(b'::%ln', heads)]
2569 markers = repo.obsstore.relevantmarkers(subset)
2574 markers = repo.obsstore.relevantmarkers(subset)
2570 # last item of marker tuple ('parents') may be None or a tuple
2575 markers = _sortedmarkers(markers)
2571 markers = sorted(markers, key=lambda m: m[:-1] + (m[-1] or (),))
2572 bundle2.buildobsmarkerspart(bundler, markers)
2576 bundle2.buildobsmarkerspart(bundler, markers)
2573
2577
2574
2578
General Comments 0
You need to be logged in to leave comments. Login now