Mercurial > hgsubversion
comparison tests/test_unaffected_core.py @ 1570:d55c9d0ba350
tests: use scmutils.revsymbol instead of repo.__getitem__ for non-integers
author | Paul Morelle <paul.morelle@octobus.net> |
---|---|
date | Fri, 25 May 2018 11:52:03 +0200 |
parents | 306187268f59 |
children | af9a3156f8ae |
comparison
equal
deleted
inserted
replaced
1569:4afe8d7e4602 | 1570:d55c9d0ba350 |
---|---|
7 from mercurial import dispatch | 7 from mercurial import dispatch |
8 from mercurial import error | 8 from mercurial import error |
9 from mercurial import hg | 9 from mercurial import hg |
10 from mercurial import node | 10 from mercurial import node |
11 from mercurial import ui | 11 from mercurial import ui |
12 | |
13 revsymbol = test_util.revsymbol | |
12 | 14 |
13 def _dispatch(ui, cmd): | 15 def _dispatch(ui, cmd): |
14 assert '--quiet' in cmd | 16 assert '--quiet' in cmd |
15 try: | 17 try: |
16 req = dispatch.request(cmd, ui=ui) | 18 req = dispatch.request(cmd, ui=ui) |
89 self.wc_path, self.wc_path + '2', | 91 self.wc_path, self.wc_path + '2', |
90 '--branch', branch]) | 92 '--branch', branch]) |
91 | 93 |
92 repo2 = hg.repository(ui, self.wc_path + '2') | 94 repo2 = hg.repository(ui, self.wc_path + '2') |
93 | 95 |
94 self.assertEqual(repo[branch].hex(), repo2['.'].hex()) | 96 self.assertEqual(revsymbol(repo, branch).hex(), revsymbol(repo2, '.').hex()) |