Mercurial > hgsubversion
comparison tests/test_single_dir_push.py @ 1599:7bb6562feb85
compathacks: drop branchset() which is compat code for hg<2.9
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 27 Nov 2018 14:08:11 +0300 |
parents | d55c9d0ba350 |
children |
comparison
equal
deleted
inserted
replaced
1598:394007c5efea | 1599:7bb6562feb85 |
---|---|
161 commit_to_branch('foo', parent) | 161 commit_to_branch('foo', parent) |
162 hg.update(repo, revsymbol(repo, 'foo').node()) | 162 hg.update(repo, revsymbol(repo, 'foo').node()) |
163 self.pushrevisions() | 163 self.pushrevisions() |
164 repo = self.repo # repo is outdated after the rebase happens, refresh | 164 repo = self.repo # repo is outdated after the rebase happens, refresh |
165 self.assertTrue('foo' in test_util.svnls(repo_path, '')) | 165 self.assertTrue('foo' in test_util.svnls(repo_path, '')) |
166 self.assertEqual(compathacks.branchset(repo), set(['default'])) | 166 self.assertEqual(set(repo.branchmap()), set(['default'])) |
167 # Have to cross to another branch head, so hg.update doesn't work | 167 # Have to cross to another branch head, so hg.update doesn't work |
168 commands.update(self.ui(), | 168 commands.update(self.ui(), |
169 self.repo, | 169 self.repo, |
170 node.hex(self.repo.branchheads('default')[1]), | 170 node.hex(self.repo.branchheads('default')[1]), |
171 clean=True) | 171 clean=True) |