diff tests/test_util.py @ 170:d046bef502d7

test_util: check all committed revisions are pushed
author Patrick Mezard <pmezard@gmail.com>
date Tue, 30 Dec 2008 20:33:57 -0600
parents 0c5f6420a8b5
children 13ae1bded5e7
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -114,9 +114,12 @@ class TestBase(unittest.TestCase):
         return hg.repository(ui.ui(), self.wc_path)
 
     def pushrevisions(self, stupid=False):
+        before = len(self.repo)
         push_cmd.push_revisions_to_subversion(
             ui.ui(), repo=self.repo, hg_repo_path=self.wc_path,
             svn_url=fileurl(self.repo_path), stupid=stupid)
+        after = len(self.repo)
+        self.assertEqual(0, after - before)
 
     def svnls(self, path, rev='HEAD'):
         path = self.repo_path + '/' + path