##// END OF EJS Templates
largefiles: reset "lfstatus" attribute to previous value in "finally"...
Martin von Zweigbergk -
r43589:013637f4 default
parent child Browse files
Show More
@@ -160,11 +160,12 b' def addlargefiles(ui, repo, isaddremove,'
160
160
161 @contextlib.contextmanager
161 @contextlib.contextmanager
162 def lfstatus(repo):
162 def lfstatus(repo):
163 oldvalue = getattr(repo, 'lfstatus', False)
163 repo.lfstatus = True
164 repo.lfstatus = True
164 try:
165 try:
165 yield
166 yield
166 finally:
167 finally:
167 repo.lfstatus = False
168 repo.lfstatus = oldvalue
168
169
169
170
170 def removelargefiles(ui, repo, isaddremove, matcher, uipathfn, dryrun, **opts):
171 def removelargefiles(ui, repo, isaddremove, matcher, uipathfn, dryrun, **opts):
General Comments 0
You need to be logged in to leave comments. Login now