[PATCH hglib] tests: fix test-bookmarks to match changed hg behavior

Alexander Plavin me at aplavin.ru
Thu May 2 12:45:18 CDT 2013


# HG changeset patch
# User Alexander Plavin <me at aplavin.ru>
# Date 1367516693 -14400
#      Thu May 02 21:44:53 2013 +0400
# Node ID a84ebf2abbfdabe8707568f44e203460f705b965
# Parent  45b03c46963f8a4e370c98058ff07fdf87c201f9
tests: fix test-bookmarks to match changed hg behavior

After a fix in hg related to activating bookmarks, a test started failing

diff -r 45b03c46963f -r a84ebf2abbfd tests/test-bookmarks.py
--- a/tests/test-bookmarks.py	Sat Apr 27 16:49:36 2013 +0400
+++ b/tests/test-bookmarks.py	Thu May 02 21:44:53 2013 +0400
@@ -17,7 +17,7 @@
         self.client.bookmark('one', rev1)
         self.assertEquals(self.client.bookmarks(),
                           ([('one', rev1, node1[:12]),
-                            ('zero', rev0, node0[:12])], 0))
+                            ('zero', rev0, node0[:12])], -1))
 
     #def test_spaces(self):
     #    self.client.bookmark('s pace', self.rev0)


More information about the Mercurial-devel mailing list