##// END OF EJS Templates
with: use context manager in manifest
Bryan O'Sullivan -
r27858:7575c048 default
parent child Browse files
Show More
@@ -5118,13 +5118,10 b' def manifest(ui, repo, node=None, rev=No'
5118 5118 suffix = ".i"
5119 5119 plen = len(prefix)
5120 5120 slen = len(suffix)
5121 lock = repo.lock()
5122 try:
5121 with repo.lock():
5123 5122 for fn, b, size in repo.store.datafiles():
5124 5123 if size != 0 and fn[-slen:] == suffix and fn[:plen] == prefix:
5125 5124 res.append(fn[plen:-slen])
5126 finally:
5127 lock.release()
5128 5125 for f in res:
5129 5126 fm.startitem()
5130 5127 fm.write("path", '%s\n', f)
General Comments 0
You need to be logged in to leave comments. Login now