##// END OF EJS Templates
hg: backout optimizing for treemanifests...
Durham Goode -
r32296:7e07d583 default
parent child Browse files
Show More
@@ -238,12 +238,11 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 treerevlog = repo.manifestlog._revlog
241 for unencoded, encoded, size in repo.store.datafiles():
242 for dir in util.dirs(files):
242 if (unencoded.startswith('meta/') and
243 # If the revlog doesn't exist, this returns an empty revlog and is a
243 unencoded.endswith('00manifest.i')):
244 # no-op.
244 dir = unencoded[5:-12]
245 rl = treerevlog.dirlog(dir)
245 repo.manifestlog._revlog.dirlog(dir).strip(striprev, tr)
246 rl.strip(striprev, tr)
247
246
248 def rebuildfncache(ui, repo):
247 def rebuildfncache(ui, repo):
249 """Rebuilds the fncache file from repo history.
248 """Rebuilds the fncache file from repo history.
General Comments 0
You need to be logged in to leave comments. Login now