##// END OF EJS Templates
strip: make tree stripping O(changes) instead of O(repo)...
Durham Goode -
r32197:7bcc9a5a default
parent child Browse files
Show More
@@ -238,11 +238,12 b' def strip(ui, repo, nodelist, backup=Tru'
238 def striptrees(repo, tr, striprev, files):
238 def striptrees(repo, tr, striprev, files):
239 if 'treemanifest' in repo.requirements: # safe but unnecessary
239 if 'treemanifest' in repo.requirements: # safe but unnecessary
240 # otherwise
240 # otherwise
241 for unencoded, encoded, size in repo.store.datafiles():
241 treerevlog = repo.manifestlog._revlog
242 if (unencoded.startswith('meta/') and
242 for dir in util.dirs(files):
243 unencoded.endswith('00manifest.i')):
243 # If the revlog doesn't exist, this returns an empty revlog and is a
244 dir = unencoded[5:-12]
244 # no-op.
245 repo.manifestlog._revlog.dirlog(dir).strip(striprev, tr)
245 rl = treerevlog.dirlog(dir)
246 rl.strip(striprev, tr)
246
247
247 def rebuildfncache(ui, repo):
248 def rebuildfncache(ui, repo):
248 """Rebuilds the fncache file from repo history.
249 """Rebuilds the fncache file from repo history.
General Comments 0
You need to be logged in to leave comments. Login now