Mercurial > hgsubversion
diff tests/test_util.py @ 626:8e621dbb82d4 1.1.1
push: return reasonable status codes to the end user
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 27 Jun 2010 21:18:47 -0500 |
parents | 3e18cdcb6e00 |
children | 95abc4cfc78f |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -213,9 +213,10 @@ class TestBase(unittest.TestCase): def pushrevisions(self, stupid=False, expected_extra_back=0): before = len(self.repo) self.repo.ui.setconfig('hgsubversion', 'stupid', str(stupid)) - commands.push(self.repo.ui, self.repo) + res = commands.push(self.repo.ui, self.repo) after = len(self.repo) self.assertEqual(expected_extra_back, after - before) + return res def svnls(self, path, rev='HEAD'): path = self.repo_path + '/' + path