##// 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 suffix = ".i"
5118 suffix = ".i"
5119 plen = len(prefix)
5119 plen = len(prefix)
5120 slen = len(suffix)
5120 slen = len(suffix)
5121 lock = repo.lock()
5121 with repo.lock():
5122 try:
5123 for fn, b, size in repo.store.datafiles():
5122 for fn, b, size in repo.store.datafiles():
5124 if size != 0 and fn[-slen:] == suffix and fn[:plen] == prefix:
5123 if size != 0 and fn[-slen:] == suffix and fn[:plen] == prefix:
5125 res.append(fn[plen:-slen])
5124 res.append(fn[plen:-slen])
5126 finally:
5127 lock.release()
5128 for f in res:
5125 for f in res:
5129 fm.startitem()
5126 fm.startitem()
5130 fm.write("path", '%s\n', f)
5127 fm.write("path", '%s\n', f)
General Comments 0
You need to be logged in to leave comments. Login now