# HG changeset patch # User Matt Mackall # Date 2012-07-27 17:33:48 # Node ID c4ebdc36c17e975779f6316549e1118c732cb00c # Parent f62cac85ce79404ab4dfdb5ff77d373d0de17ba4 largefiles: fix exception hack for i18n (issue3197) Properly fixing this is quite a bit trickier. diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -439,7 +439,7 @@ def overridecopy(orig, ui, repo, pats, o 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 @@ def overridecopy(orig, ui, repo, pats, o 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