Show More
@@ -67,16 +67,20 b' def _collectfiles(repo, striprev):' | |||||
67 |
|
67 | |||
68 | return sorted(files) |
|
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 | def _collectbrokencsets(repo, files, striprev): |
|
77 | def _collectbrokencsets(repo, files, striprev): | |
71 | """return the changesets which will be broken by the truncation""" |
|
78 | """return the changesets which will be broken by the truncation""" | |
72 | s = set() |
|
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 | for fname in files: |
|
82 | for fname in files: | |
79 |
collect |
|
83 | s.update(_collectrevlog(repo.file(fname), striprev)) | |
80 |
|
84 | |||
81 | return s |
|
85 | return s | |
82 |
|
86 |
General Comments 0
You need to be logged in to leave comments.
Login now