hgext/largefiles/lfcommands.py
changeset 25560 2b2108c35bfc
parent 25508 b8fd605b0c88
child 25660 328739ea70c3
--- a/hgext/largefiles/lfcommands.py	Thu Jun 11 13:02:21 2015 -0700
+++ b/hgext/largefiles/lfcommands.py	Fri Jun 12 16:11:42 2015 -0400
@@ -159,8 +159,13 @@
             if missing != 0:
                 raise util.Abort(_("all largefiles must be present locally"))
 
+            orig = convcmd.converter
             convcmd.converter = converter
-            convcmd.convert(ui, src, dest)
+
+            try:
+                convcmd.convert(ui, src, dest)
+            finally:
+                convcmd.converter = orig
         success = True
     finally:
         if tolfile: