Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
169:f1919e1c35bf | 170:d046bef502d7 |
---|---|
112 @property | 112 @property |
113 def repo(self): | 113 def repo(self): |
114 return hg.repository(ui.ui(), self.wc_path) | 114 return hg.repository(ui.ui(), self.wc_path) |
115 | 115 |
116 def pushrevisions(self, stupid=False): | 116 def pushrevisions(self, stupid=False): |
117 before = len(self.repo) | |
117 push_cmd.push_revisions_to_subversion( | 118 push_cmd.push_revisions_to_subversion( |
118 ui.ui(), repo=self.repo, hg_repo_path=self.wc_path, | 119 ui.ui(), repo=self.repo, hg_repo_path=self.wc_path, |
119 svn_url=fileurl(self.repo_path), stupid=stupid) | 120 svn_url=fileurl(self.repo_path), stupid=stupid) |
121 after = len(self.repo) | |
122 self.assertEqual(0, after - before) | |
120 | 123 |
121 def svnls(self, path, rev='HEAD'): | 124 def svnls(self, path, rev='HEAD'): |
122 path = self.repo_path + '/' + path | 125 path = self.repo_path + '/' + path |
123 path = fileurl(path) | 126 path = fileurl(path) |
124 args = ['svn', 'ls', '-r', rev, '-R', path] | 127 args = ['svn', 'ls', '-r', rev, '-R', path] |