Mercurial > hgsubversion
comparison tests/test_single_dir_clone.py @ 871:51fd75ae62b9
test_util: pass repo_path to svnpropget(), turn into a function
| author | Patrick Mezard <patrick@mezard.eu> |
|---|---|
| date | Thu, 19 Apr 2012 18:29:31 +0200 |
| parents | db3a651494f9 |
| children | c6388ed0ec0a |
comparison
equal
deleted
inserted
replaced
| 870:1eb2a4428c42 | 871:51fd75ae62b9 |
|---|---|
| 109 repo.commitctx(ctx) | 109 repo.commitctx(ctx) |
| 110 hg.update(repo, repo['tip'].node()) | 110 hg.update(repo, repo['tip'].node()) |
| 111 self.pushrevisions() | 111 self.pushrevisions() |
| 112 self.assertTrue('adding_file' in test_util.svnls(repo_path, '')) | 112 self.assertTrue('adding_file' in test_util.svnls(repo_path, '')) |
| 113 self.assertEqual('application/octet-stream', | 113 self.assertEqual('application/octet-stream', |
| 114 self.svnpropget('adding_binary', 'svn:mime-type')) | 114 test_util.svnpropget(repo_path, 'adding_binary', |
| 115 'svn:mime-type')) | |
| 115 # Now add another commit and test mime-type being reset | 116 # Now add another commit and test mime-type being reset |
| 116 changes = [('adding_binary', 'adding_binary', 'no longer binary')] | 117 changes = [('adding_binary', 'adding_binary', 'no longer binary')] |
| 117 self.commitchanges(changes) | 118 self.commitchanges(changes) |
| 118 self.pushrevisions() | 119 self.pushrevisions() |
| 119 self.assertEqual('', self.svnpropget('adding_binary', 'svn:mime-type')) | 120 self.assertEqual('', test_util.svnpropget(repo_path, 'adding_binary', |
| 121 'svn:mime-type')) | |
| 120 | 122 |
| 121 def test_push_single_dir_at_subdir(self): | 123 def test_push_single_dir_at_subdir(self): |
| 122 repo = self._load_fixture_and_fetch('branch_from_tag.svndump', | 124 repo = self._load_fixture_and_fetch('branch_from_tag.svndump', |
| 123 stupid=False, | 125 stupid=False, |
| 124 layout='single', | 126 layout='single', |
