Rev 2247: Add test for 299943 in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Mon Dec 8 18:08:05 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2247
revision-id: jelmer at samba.org-20081208180801-cd9aaafda7ss8n93
parent: jelmer at samba.org-20081208175211-j2eo6w5mp1tt4n93
committer: Jelmer Vernooij <jelmer at samba.org>
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):
More information about the bazaar-commits
mailing list