changeset 17263:c4ebdc36c17e stable

largefiles: fix exception hack for i18n (issue3197) Properly fixing this is quite a bit trickier.
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Jul 2012 12:33:48 -0500
parents f62cac85ce79
children ec7b9bec19c9
files hgext/largefiles/overrides.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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