Rev 6074: (jr) bzr push -q now does not print name of pushed location in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed Aug 17 02:08:26 UTC 2011
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 6074 [merge]
revision-id: pqm at pqm.ubuntu.com-20110817020800-z7oepdt2nxwjq5ue
parent: pqm at pqm.ubuntu.com-20110816201923-rzvny0qfpdhdxdgc
parent: jriddell at canonical.com-20110816150354-s7u6d0g8sfsg7k9s
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2011-08-17 02:08:00 +0000
message:
(jr) bzr push -q now does not print name of pushed location
(Jonathan Riddell)
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
bzrlib/tests/blackbox/test_push.py test_push.py-20060329002750-929af230d5d22663
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2011-08-13 23:07:36 +0000
+++ b/bzrlib/builtins.py 2011-08-17 02:08:00 +0000
@@ -1195,7 +1195,7 @@
else:
display_url = urlutils.unescape_for_display(stored_loc,
self.outf.encoding)
- self.outf.write("Using saved push location: %s\n" % display_url)
+ note("Using saved push location: %s" % display_url)
location = stored_loc
_show_push_branch(br_from, revision_id, location, self.outf,
=== modified file 'bzrlib/tests/blackbox/test_push.py'
--- a/bzrlib/tests/blackbox/test_push.py 2011-05-13 12:51:05 +0000
+++ b/bzrlib/tests/blackbox/test_push.py 2011-08-16 15:03:03 +0000
@@ -104,12 +104,11 @@
transport.delete('branch_b/c')
out, err = self.run_bzr('push', working_dir='branch_a')
path = branch_a.get_push_location()
- self.assertEquals(out,
- 'Using saved push location: %s\n'
- % urlutils.local_path_from_url(path))
self.assertEqual(err,
+ 'Using saved push location: %s\n'
'All changes applied successfully.\n'
- 'Pushed up to revision 2.\n')
+ 'Pushed up to revision 2.\n'
+ % urlutils.local_path_from_url(path))
self.assertEqual(path,
branch_b.bzrdir.root_transport.base)
# test explicit --remember
@@ -149,6 +148,20 @@
self.assertEqual('', out)
self.assertEqual('Created new branch.\n', err)
+ def test_push_quiet(self):
+ # test that using -q makes output quiet
+ t = self.make_branch_and_tree('tree')
+ self.build_tree(['tree/file'])
+ t.add('file')
+ t.commit('commit 1')
+ self.run_bzr('push -d tree pushed-to')
+ path = t.branch.get_push_location()
+ out, err = self.run_bzr('push', working_dir="tree")
+ self.assertEqual('Using saved push location: %s\nNo new revisions to push.\n' % urlutils.local_path_from_url(path), err)
+ out, err = self.run_bzr('push -q', working_dir="tree")
+ self.assertEqual('', out)
+ self.assertEqual('', err)
+
def test_push_only_pushes_history(self):
# Knit branches should only push the history for the current revision.
format = bzrdir.BzrDirMetaFormat1()
More information about the bazaar-commits
mailing list