diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1179,7 +1179,7 @@ class gitsubrepo(abstractsubrepo): return True else: self._ui.warn(_('no branch checked out in subrepo %s\n' - 'cannot push revision %s') % + 'cannot push revision %s\n') % (self._relpath, self._state[1])) return False