changeset 21092:56fda512db9f

largefiles: remove silent handling of incorrect invocation of restorematchfn It is better to get a crash than to continue without noticing errors.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 13 Apr 2014 18:45:43 +0200
parents dd584d1a75e7
children 71cd8b795cce
files hgext/largefiles/overrides.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Sun Apr 13 18:45:43 2014 +0200
+++ b/hgext/largefiles/overrides.py	Sun Apr 13 18:45:43 2014 +0200
@@ -54,7 +54,7 @@
 
     Note that n calls to installmatchfn will require n calls to
     restore matchfn to reverse'''
-    scmutil.match = getattr(scmutil.match, 'oldmatch', scmutil.match)
+    scmutil.match = getattr(scmutil.match, 'oldmatch')
 
 def addlargefiles(ui, repo, *pats, **opts):
     large = opts.pop('large', None)