diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -827,10 +827,9 @@ class localrepository(repo.repository): if match(s) and wctx.sub(s).dirty(): subs.append(s) if (subs or removedsubs): - # is hgsub modified and not included? if (not match('.hgsub') and '.hgsub' in (wctx.modified() + wctx.added())): - raise util.Abort("can't commit subrepos without .hgsub") + raise util.Abort(_("can't commit subrepos without .hgsub")) if '.hgsubstate' not in changes[0]: changes[0].insert(0, '.hgsubstate')