##// END OF EJS Templates
repair: refactor broken linkrev collection...
Durham Goode -
r33690:6626d12e default
parent child Browse files
Show More
@@ -67,16 +67,20 b' def _collectfiles(repo, striprev):'
67 67
68 68 return sorted(files)
69 69
70 def _collectrevlog(revlog, striprev):
71 _, brokenset = revlog.getstrippoint(striprev)
72 return [revlog.linkrev(r) for r in brokenset]
73
74 def _collectmanifest(repo, striprev):
75 return _collectrevlog(repo.manifestlog._revlog, striprev)
76
70 77 def _collectbrokencsets(repo, files, striprev):
71 78 """return the changesets which will be broken by the truncation"""
72 79 s = set()
73 def collectone(revlog):
74 _, brokenset = revlog.getstrippoint(striprev)
75 s.update([revlog.linkrev(r) for r in brokenset])
76 80
77 collectone(repo.manifestlog._revlog)
81 s.update(_collectmanifest(repo, striprev))
78 82 for fname in files:
79 collectone(repo.file(fname))
83 s.update(_collectrevlog(repo.file(fname), striprev))
80 84
81 85 return s
82 86
General Comments 0
You need to be logged in to leave comments. Login now