# HG changeset patch # User Durham Goode # Date 1360324302 28800 # Node ID 5fe53db61aa433018de8b0ee296db868f666cee7 # Parent 7ce1c3b93414e08a9be1d83f17e7d87d2a24ab3b tests: fix tests that use integer bookmarks Integer bookmarks are now not allowed (since they alias with revision numbers), so a hglib test was failing. diff -r 7ce1c3b93414 -r 5fe53db61aa4 tests/test-bookmarks.py --- a/tests/test-bookmarks.py Thu Nov 01 17:47:29 2012 -0500 +++ b/tests/test-bookmarks.py Fri Feb 08 03:51:42 2013 -0800 @@ -10,14 +10,14 @@ self.append('a', 'a') rev1, node1 = self.client.commit('second') - self.client.bookmark('0', rev0) + self.client.bookmark('zero', rev0) self.assertEquals(self.client.bookmarks(), - ([('0', rev0, node0[:12])], -1)) + ([('zero', rev0, node0[:12])], -1)) - self.client.bookmark('1', rev1) + self.client.bookmark('one', rev1) self.assertEquals(self.client.bookmarks(), - ([('0', rev0, node0[:12]), - ('1', rev1, node1[:12])], 1)) + ([('one', rev1, node1[:12]), + ('zero', rev0, node0[:12])], 0)) #def test_spaces(self): # self.client.bookmark('s pace', self.rev0)