subrepo: print pushing url
authorEdouard Gomez <ed.gomez@free.fr>
Sat, 01 May 2010 23:05:22 +0200
changeset 11111 d2da9e6dd13e
parent 11110 22f5ad0b5857
child 11112 4a9bee613737
subrepo: print pushing url
mercurial/subrepo.py
tests/test-subrepo.out
--- a/mercurial/subrepo.py	Sat May 01 23:05:21 2010 +0200
+++ b/mercurial/subrepo.py	Sat May 01 23:05:22 2010 +0200
@@ -266,8 +266,9 @@
             if not c.sub(s).push(force):
                 return False
 
-        self._repo.ui.status(_('pushing subrepo %s\n') % self._path)
         dsturl = _abssource(self._repo, True)
+        self._repo.ui.status(_('pushing subrepo %s to %s\n') %
+            (self._path, dsturl))
         other = hg.repository(self._repo.ui, dsturl)
         return self._repo.push(other, force)
 
--- a/tests/test-subrepo.out	Sat May 01 23:05:21 2010 +0200
+++ b/tests/test-subrepo.out	Sat May 01 23:05:22 2010 +0200
@@ -151,13 +151,13 @@
 % push
 committing subrepository t
 pushing ...sub/t
-pushing ...subrepo ss
+pushing ...sub/t/s/ss
 searching for changes
 no changes found
-pushing ...subrepo s
+pushing ...sub/t/s
 searching for changes
 no changes found
-pushing ...subrepo t
+pushing ...sub/t/t
 searching for changes
 adding changesets
 adding manifests
@@ -172,23 +172,23 @@
 committing subrepository s
 abort: push creates new remote heads on branch 'default'!
 pushing ...sub/t
-pushing ...subrepo ss
+pushing ...sub/t/s/ss
 searching for changes
 no changes found
-pushing ...subrepo s
+pushing ...sub/t/s
 searching for changes
 (did you forget to merge? use push -f to force)
 pushing ...sub/t
-pushing ...subrepo ss
+pushing ...sub/t/s/ss
 searching for changes
 no changes found
-pushing ...subrepo s
+pushing ...sub/t/s
 searching for changes
 adding changesets
 adding manifests
 adding file changes
 added 1 changesets with 1 changes to 1 files (+1 heads)
-pushing ...subrepo t
+pushing ...sub/t/t
 searching for changes
 no changes found
 searching for changes