[PATCH 2 of 2] largefiles: drop the unfiltered repo usage in overridepurge()

Matt Harbison mharbison72 at gmail.com
Mon Dec 8 20:31:32 CST 2014


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1417967669 18000
#      Sun Dec 07 10:54:29 2014 -0500
# Node ID c37bb6760397910e5a05026df1555507b20f7aea
# Parent  299fc395d9c4f633a07ef08187f46151ca0ab298
largefiles: drop the unfiltered repo usage in overridepurge()

Now that repoview supports replacing methods, we don't need this hack.

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -1110,9 +1110,6 @@
 # Calling purge with --all will cause the largefiles to be deleted.
 # Override repo.status to prevent this from happening.
 def overridepurge(orig, ui, repo, *dirs, **opts):
-    # XXX large file status is buggy when used on repo proxy.
-    # XXX this needs to be investigate.
-    repo = repo.unfiltered()
     oldstatus = repo.status
     def overridestatus(node1='.', node2=None, match=None, ignored=False,
                         clean=False, unknown=False, listsubrepos=False):


More information about the Mercurial-devel mailing list