comparison hgext/largefiles/overrides.py @ 23634:bbd50e13c006

largefile: backout ca54fb3d71ce The hack for method monkey patching on repoview has been ruled out as fragile, so we are rolling it back. We'll expand the explanation in the next changeset.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 17 Dec 2014 12:10:16 -0800
parents a4679a74df14
children faec11cfb645
comparison
equal deleted inserted replaced
23633:96c3cbec006f 23634:bbd50e13c006
1120 return orig(repo, matcher, prefix, opts, dry_run, similarity) 1120 return orig(repo, matcher, prefix, opts, dry_run, similarity)
1121 1121
1122 # Calling purge with --all will cause the largefiles to be deleted. 1122 # Calling purge with --all will cause the largefiles to be deleted.
1123 # Override repo.status to prevent this from happening. 1123 # Override repo.status to prevent this from happening.
1124 def overridepurge(orig, ui, repo, *dirs, **opts): 1124 def overridepurge(orig, ui, repo, *dirs, **opts):
1125 # XXX large file status is buggy when used on repo proxy.
1126 # XXX this needs to be investigate.
1127 repo = repo.unfiltered()
1125 oldstatus = repo.status 1128 oldstatus = repo.status
1126 def overridestatus(node1='.', node2=None, match=None, ignored=False, 1129 def overridestatus(node1='.', node2=None, match=None, ignored=False,
1127 clean=False, unknown=False, listsubrepos=False): 1130 clean=False, unknown=False, listsubrepos=False):
1128 r = oldstatus(node1, node2, match, ignored, clean, unknown, 1131 r = oldstatus(node1, node2, match, ignored, clean, unknown,
1129 listsubrepos) 1132 listsubrepos)