largefiles: fix exception hack for i18n (issue3197) stable
authorMatt Mackall <mpm@selenic.com>
Fri, 27 Jul 2012 12:33:48 -0500
branchstable
changeset 17263 c4ebdc36c17e
parent 17262 f62cac85ce79
child 17264 ec7b9bec19c9
largefiles: fix exception hack for i18n (issue3197) Properly fixing this is quite a bit trickier.
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Fri Jul 27 12:32:02 2012 -0500
+++ b/hgext/largefiles/overrides.py	Fri Jul 27 12:33:48 2012 -0500
@@ -439,7 +439,7 @@
             installnormalfilesmatchfn(repo[None].manifest())
             result = orig(ui, repo, pats, opts, rename)
         except util.Abort, e:
-            if str(e) != 'no files to copy':
+            if str(e) != _('no files to copy'):
                 raise e
             else:
                 nonormalfiles = True
@@ -528,7 +528,7 @@
                     lfdirstate.add(destlfile)
             lfdirstate.write()
         except util.Abort, e:
-            if str(e) != 'no files to copy':
+            if str(e) != _('no files to copy'):
                 raise e
             else:
                 nolfiles = True