Rev 5210: (parthm) heavyweight checkout now indicates that history is being copied. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed May 5 13:07:42 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5210 [merge]
revision-id: pqm at pqm.ubuntu.com-20100505120735-98yx0p5hou1knl24
parent: pqm at pqm.ubuntu.com-20100505104917-ou565uqipinv20y5
parent: parth.malwankar at gmail.com-20100504121720-h6ec74khx8morevu
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2010-05-05 13:07:35 +0100
message:
(parthm) heavyweight checkout now indicates that history is being copied.
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
bzrlib/tests/blackbox/test_checkout.py test_checkout.py-20060211231752-a5cde67cf70af854
bzrlib/tests/commands/test_checkout.py test_checkout.py-20070525151718-vm7ligd5px5dtmda-1
=== modified file 'NEWS'
--- a/NEWS 2010-05-05 10:49:17 +0000
+++ b/NEWS 2010-05-05 12:07:35 +0000
@@ -69,6 +69,10 @@
versions before 1.6.
(Andrew Bennetts, #528041)
+* Heavyweight checkout operation now shows a message to the user indicating
+ history is being copied.
+ (Parth Malwankar, #538868)
+
* Reduce peak memory by one copy of compressed text.
(John Arbash Meinel, #566940)
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2010-05-05 09:30:50 +0000
+++ b/bzrlib/builtins.py 2010-05-05 12:07:35 +0000
@@ -1349,6 +1349,11 @@
except errors.NoWorkingTree:
source.bzrdir.create_workingtree(revision_id)
return
+
+ if not lightweight:
+ message = ('Copying history to "%s". '
+ 'To checkout without local history use --lightweight.' % to_location)
+ ui.ui_factory.show_message(message)
source.create_checkout(to_location, revision_id, lightweight,
accelerator_tree, hardlink)
=== modified file 'bzrlib/tests/blackbox/test_checkout.py'
--- a/bzrlib/tests/blackbox/test_checkout.py 2010-02-17 17:11:16 +0000
+++ b/bzrlib/tests/blackbox/test_checkout.py 2010-04-30 09:52:08 +0000
@@ -64,7 +64,8 @@
result.open_branch().bzrdir.root_transport.base)
def test_checkout_dash_r(self):
- self.run_bzr('checkout -r -2 branch checkout')
+ out, err = self.run_bzr(['checkout', '-r', '-2', 'branch', 'checkout'])
+ self.assertContainsRe(out, 'Copying history to "checkout".')
# the working tree should now be at revision '1' with the content
# from 1.
result = bzrdir.BzrDir.open('checkout')
@@ -72,7 +73,9 @@
self.failIfExists('checkout/added_in_2')
def test_checkout_light_dash_r(self):
- self.run_bzr('checkout --lightweight -r -2 branch checkout')
+ out, err = self.run_bzr(['checkout','--lightweight', '-r', '-2',
+ 'branch', 'checkout'])
+ self.assertNotContainsRe(out, 'Copying history')
# the working tree should now be at revision '1' with the content
# from 1.
result = bzrdir.BzrDir.open('checkout')
=== modified file 'bzrlib/tests/commands/test_checkout.py'
--- a/bzrlib/tests/commands/test_checkout.py 2010-04-09 03:58:14 +0000
+++ b/bzrlib/tests/commands/test_checkout.py 2010-05-03 08:33:32 +0000
@@ -14,7 +14,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
from bzrlib.builtins import cmd_checkout
from bzrlib.tests.transport_util import TestCaseWithConnectionHookedTransport
More information about the bazaar-commits
mailing list