comparison hgext/largefiles/overrides.py @ 22168:1b9d0dc1bbe1 stable

largefiles: drop setting lfstatus in overridelog (issue4334) lfstatus should only be True for operations where we want standins to be printed out. We explicitly do not want that for historical operations like log. Other historical operations like hg diff -r A -r B don't print out standins either. This is required to fix issue4334, but doesn't fix anything by itself. That's why there aren't any tests accompanying this patch.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 13 Aug 2014 15:13:50 -0700
parents 0cb34b3991f8
children 35cc5b07b3fc
comparison
equal deleted inserted replaced
22167:d4bc38f6eab7 22168:1b9d0dc1bbe1
299 299
300 return m, pats 300 return m, pats
301 301
302 oldmatchandpats = installmatchandpatsfn(overridematchandpats) 302 oldmatchandpats = installmatchandpatsfn(overridematchandpats)
303 try: 303 try:
304 repo.lfstatus = True
305 return orig(ui, repo, *pats, **opts) 304 return orig(ui, repo, *pats, **opts)
306 finally: 305 finally:
307 repo.lfstatus = False
308 restorematchandpatsfn() 306 restorematchandpatsfn()
309 307
310 def overrideverify(orig, ui, repo, *pats, **opts): 308 def overrideverify(orig, ui, repo, *pats, **opts):
311 large = opts.pop('large', False) 309 large = opts.pop('large', False)
312 all = opts.pop('lfa', False) 310 all = opts.pop('lfa', False)