##// END OF EJS Templates
largefiles: use context manager for setting "lfstatus" on subrepos too...
Martin von Zweigbergk -
r43590:2cb787b6 default
parent child Browse files
Show More
@@ -1208,8 +1208,8 def overridearchive(
1208 sub = ctx.workingsub(subpath)
1208 sub = ctx.workingsub(subpath)
1209 submatch = matchmod.subdirmatcher(subpath, match)
1209 submatch = matchmod.subdirmatcher(subpath, match)
1210 subprefix = prefix + subpath + b'/'
1210 subprefix = prefix + subpath + b'/'
1211 sub._repo.lfstatus = True
1211 with lfstatus(sub._repo):
1212 sub.archive(archiver, subprefix, submatch)
1212 sub.archive(archiver, subprefix, submatch)
1213
1213
1214 archiver.done()
1214 archiver.done()
1215
1215
@@ -1266,8 +1266,8 def hgsubrepoarchive(orig, repo, archive
1266 sub = ctx.workingsub(subpath)
1266 sub = ctx.workingsub(subpath)
1267 submatch = matchmod.subdirmatcher(subpath, match)
1267 submatch = matchmod.subdirmatcher(subpath, match)
1268 subprefix = prefix + subpath + b'/'
1268 subprefix = prefix + subpath + b'/'
1269 sub._repo.lfstatus = True
1269 with lfstatus(sub._repo):
1270 sub.archive(archiver, subprefix, submatch, decode)
1270 sub.archive(archiver, subprefix, submatch, decode)
1271
1271
1272
1272
1273 # If a largefile is modified, the change is not reflected in its
1273 # If a largefile is modified, the change is not reflected in its
General Comments 0
You need to be logged in to leave comments. Login now