At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2247
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Jelmer Vernooij <[EMAIL PROTECTED]>
branch nick: 0.5
timestamp: Mon 2008-12-08 19:08:01 +0100
message:
Add test for 299943
modified:
tests/test_push.py test_push.py-20070201165715-g2ievcdfqi33wqsy-1
=== modified file 'tests/test_push.py'
--- a/tests/test_push.py 2008-12-08 17:34:37 +0000
+++ b/tests/test_push.py 2008-12-08 18:08:01 +0000
@@ -986,6 +986,24 @@
self.assertEquals(svnbranch.last_revision(), wt.branch.last_revision())
self.assertEquals(["myfile"], svndir.root_transport.list_dir("."))
+ def test_push_pointless(self):
+ repos_url = self.make_repository("a")
+
+ dc = self.get_commit_editor(repos_url)
+ trunk = dc.add_dir("trunk")
+ dc.close()
+
+ os.mkdir("dc")
+ svndir = BzrDir.open(repos_url+"/trunk")
+ bzrdir = svndir.sprout("dc")
+
+ wt = bzrdir.open_workingtree()
+ wt.lock_write()
+ wt.commit("This is pointless.")
+ svnbranch = svndir.open_branch()
+ svnbranch.pull(wt.branch)
+ self.assertEquals(svnbranch.last_revision(), wt.branch.last_revision())
+
class TestPushTwice(SubversionTestCase):
def test_push_twice(self):
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits