Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 11112:4a9bee613737
subrepo: print paths relative to upper repo root for push/pull/commit
This makes more sense when using multiple levels of
nesting.
This happens to help a lot in a case where 3 projects
of mine all use the same makefile helper project as a
sub. A fourth project use these first three projects
and current output made it very hard to figure
which makefile helper was committed. it looked more
like the project was committed/pushed/pulled three times
in a row than dealing on three different repos.
author | Edouard Gomez <ed.gomez@free.fr> |
---|---|
date | Sat, 01 May 2010 23:05:22 +0200 |
parents | eb23c876c111 |
children | 9936ed1d04f4 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat May 01 23:05:22 2010 +0200 +++ b/mercurial/localrepo.py Sat May 01 23:05:22 2010 +0200 @@ -867,8 +867,10 @@ if subs or removedsubs: state = wctx.substate.copy() for s in subs: - self.ui.status(_('committing subrepository %s\n') % s) - sr = wctx.sub(s).commit(cctx._text, user, date) + sub = wctx.sub(s) + self.ui.status(_('committing subrepository %s\n') % + subrepo.relpath(sub)) + sr = sub.commit(cctx._text, user, date) state[s] = (state[s][0], sr) subrepo.writestate(self, state)