changeset 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 f1919e1c35bf
children b77a4caaf77b
files tests/test_util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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