push: suppress "exporting hg objects to git" message

When communicating with the user on push/outgoing, Mercurial doesn't show a
"exporting hg objects to git" message, so we shouldn't.  The message has been
changed to be shown if --verbose is specified.
This commit is contained in:
David M. Carr 2012-10-25 21:47:44 -04:00
parent fb74ae0f84
commit deba26ad93
18 changed files with 1 additions and 26 deletions

View File

@ -337,7 +337,7 @@ class GitHandler(object):
export = [node for node in nodes if not hex(node) in self._map_hg]
total = len(export)
if total:
self.ui.status(_("exporting hg objects to git\n"))
self.ui.note(_("exporting hg objects to git\n"))
for i, rev in enumerate(export):
util.progress(self.ui, 'exporting', i, total=total)
ctx = self.repo.changectx(rev)

View File

@ -60,7 +60,6 @@ resolve using first parent
$ hg bookmark -r tip master
$ hg push -r master ../gitrepo
pushing to ../gitrepo
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -60,7 +60,6 @@ resolve using second parent
$ hg bookmark -r tip master
$ hg push -r master ../gitrepo
pushing to ../gitrepo
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -61,7 +61,6 @@ bail if the user does not have dulwich
$ hg bookmark -r4 master
$ hg push -r master ../gitrepo
pushing to ../gitrepo
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -39,7 +39,6 @@ bail if the user does not have dulwich
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ../gitrepo2

View File

@ -121,7 +121,6 @@ utf-8 encoded commit message
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ../gitrepo2

View File

@ -108,7 +108,6 @@ bail if the user does not have dulwich
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ../gitrepo2

View File

@ -71,7 +71,6 @@ bail if the user does not have dulwich
$ hg commit -m 'fix for beta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -66,7 +66,6 @@ bail if the user does not have dulwich
$ echo "[git]" >> .hg/hgrc
$ echo "intree = True" >> .hg/hgrc
$ hg gexport
exporting hg objects to git
$ echo % do some work
% do some work

View File

@ -54,14 +54,12 @@ bail if the user does not have dulwich
$ hgcommit -u "test" -m 'add beta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo gamma >> beta
$ hgcommit -u "test <test@example.com> (comment)" -m 'modify beta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo gamma > gamma
@ -69,7 +67,6 @@ bail if the user does not have dulwich
$ hgcommit -u "<test@example.com>" -m 'add gamma'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo delta > delta
@ -77,7 +74,6 @@ bail if the user does not have dulwich
$ hgcommit -u "name<test@example.com>" -m 'add delta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo epsilon > epsilon
@ -85,7 +81,6 @@ bail if the user does not have dulwich
$ hgcommit -u "name <test@example.com" -m 'add epsilon'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo zeta > zeta
@ -93,7 +88,6 @@ bail if the user does not have dulwich
$ hgcommit -u " test " -m 'add zeta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo eta > eta
@ -101,7 +95,6 @@ bail if the user does not have dulwich
$ hgcommit -u "test < test@example.com >" -m 'add eta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ echo theta > theta
@ -109,7 +102,6 @@ bail if the user does not have dulwich
$ hgcommit -u "test >test@example.com>" -m 'add theta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ hg log --graph | egrep -v ': *(not-master|master)'

View File

@ -57,7 +57,6 @@ TODO stop using this when we're 1.5 only
$ hgcommit -m 'rename alpha to beta'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ hg branch gamma | grep -v 'permanent and global'
@ -65,7 +64,6 @@ TODO stop using this when we're 1.5 only
$ hgcommit -m 'started branch gamma'
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ hg log --graph | $filterhash | egrep -v ': *(not-master|master)'

View File

@ -52,7 +52,6 @@ bail if the user does not have dulwich
$ hgtag alpha
$ hg push
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ hg log --graph | egrep -v ': *(not-master|master)'

View File

@ -69,7 +69,6 @@ clean merge
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -96,7 +96,6 @@ bail if the user does not have dulwich
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ../gitrepo2

View File

@ -60,7 +60,6 @@ bail if the user does not have dulwich
$ hg outgoing | sed 's/bookmark: /tag: /' | grep -v 'searching for changes'
comparing with */gitrepo (glob)
exporting hg objects to git
changeset: 1:0564f526fb0f
tag: beta
user: test

View File

@ -59,7 +59,6 @@ bail if the user does not have dulwich
$ hg book -r 1 beta
$ hg push -r beta
pushing to $TESTTMP/gitrepo
exporting hg objects to git
searching for changes
$ cd ..

View File

@ -115,7 +115,6 @@ allow commits despite working copy presense
$ hg commit -m 'Update subrepo2 from hg' | grep -v "committing subrepository" || true
$ hg push
pushing to $TESTTMP/gitrepo1
exporting hg objects to git
searching for changes
$ cd ..
$ cd gitrepo1

View File

@ -67,7 +67,6 @@ bail if the user does not have dulwich
clearing out the git cache data
$ hg push ../gitrepo2
pushing to ../gitrepo2
exporting hg objects to git
searching for changes
$ cd ../gitrepo2