Rev 6513: user_url seems a cleaner way to do the same thing. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697

John Arbash Meinel john at arbash-meinel.com
Thu Sep 6 09:01:10 UTC 2012


At http://bazaar.launchpad.net/~jameinel/bzr/2.5-remote-wt-tests-1046697

------------------------------------------------------------
revno: 6513
revision-id: john at arbash-meinel.com-20120906090045-bu07u9xz0u59h1v3
parent: john at arbash-meinel.com-20120906085746-avc41t9oqw0dyyha
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-remote-wt-tests-1046697
timestamp: Thu 2012-09-06 13:00:45 +0400
message:
  user_url seems a cleaner way to do the same thing.
-------------- next part --------------
=== modified file 'bzrlib/tests/per_workingtree/test_parents.py'
--- a/bzrlib/tests/per_workingtree/test_parents.py	2012-09-06 08:57:46 +0000
+++ b/bzrlib/tests/per_workingtree/test_parents.py	2012-09-06 09:00:45 +0000
@@ -474,8 +474,7 @@
         # extra assurance is well worth it.
         tree._validate()
         # If tree.branch is remote
-        if (tree.bzrdir.root_transport.base
-            != tree.branch.bzrdir.root_transport.base):
+        if tree.user_url != tree.branch.user_url:
             # We have a lightweight checkout, delete both locations
             tree.branch.bzrdir.root_transport.delete_tree('.')
         tree.bzrdir.root_transport.delete_tree('.')



More information about the bazaar-commits mailing list