Mercurial > python-hglib
changeset 107:5fe53db61aa4 0.4
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.
author | Durham Goode <durham@fb.com> |
---|---|
date | Fri, 08 Feb 2013 03:51:42 -0800 |
parents | 7ce1c3b93414 |
children | 181d1a4115cf |
files | tests/test-bookmarks.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)