Patchwork [08,of,12,misc,largefiles] largefiles: copy override, install matchfn outside the try/except restoring it

login
register
mail settings
Submitter Mads Kiilerich
Date April 13, 2014, 4:59 p.m.
Message ID <918a93c8be12e4277f40.1397408351@localhost.localdomain>
Download mbox | patch
Permalink /patch/4324/
State Accepted
Commit dd584d1a75e7ce02e43609210690e4ea1f2e9493
Headers show

Comments

Mads Kiilerich - April 13, 2014, 4:59 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1397407543 -7200
#      Sun Apr 13 18:45:43 2014 +0200
# Node ID 918a93c8be12e4277f406d0439f956e3784e4c2f
# Parent  8a8a773003f4c2d29fc558fa5f74e20d4d52033e
largefiles: copy override, install matchfn outside the try/except restoring it

Patch

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -465,9 +465,9 @@  def overridecopy(orig, ui, repo, pats, o
     # match largefiles and run it again.
     nonormalfiles = False
     nolfiles = False
+    installnormalfilesmatchfn(repo[None].manifest())
     try:
         try:
-            installnormalfilesmatchfn(repo[None].manifest())
             result = orig(ui, repo, pats, opts, rename)
         except util.Abort, e:
             if str(e) != _('no files to copy'):