Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
625:96552e855d7e | 626:8e621dbb82d4 |
---|---|
211 return hg.repository(testui(), self.wc_path) | 211 return hg.repository(testui(), self.wc_path) |
212 | 212 |
213 def pushrevisions(self, stupid=False, expected_extra_back=0): | 213 def pushrevisions(self, stupid=False, expected_extra_back=0): |
214 before = len(self.repo) | 214 before = len(self.repo) |
215 self.repo.ui.setconfig('hgsubversion', 'stupid', str(stupid)) | 215 self.repo.ui.setconfig('hgsubversion', 'stupid', str(stupid)) |
216 commands.push(self.repo.ui, self.repo) | 216 res = commands.push(self.repo.ui, self.repo) |
217 after = len(self.repo) | 217 after = len(self.repo) |
218 self.assertEqual(expected_extra_back, after - before) | 218 self.assertEqual(expected_extra_back, after - before) |
219 return res | |
219 | 220 |
220 def svnls(self, path, rev='HEAD'): | 221 def svnls(self, path, rev='HEAD'): |
221 path = self.repo_path + '/' + path | 222 path = self.repo_path + '/' + path |
222 path = util.normalize_url(fileurl(path)) | 223 path = util.normalize_url(fileurl(path)) |
223 args = ['svn', 'ls', '-r', rev, '-R', path] | 224 args = ['svn', 'ls', '-r', rev, '-R', path] |