Mercurial > hgsubversion
annotate tests/test_fetch_dir_removal.py @ 1540:c0fc42713ecb
config: don't use the config registrar on hg that lacks dynamicdefault
Some versions of hg have bits of the config registrar code, but lack
dynamicdefault. Despite that, if they see reigstered config knobs,
they'll set off devel-warn nonsense about how you're holding the
config system wrong.
Ugh.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 29 Oct 2017 09:06:57 -0400 |
parents | 8c7dae2e0f54 |
children |
rev | line source |
---|---|
1509
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
1 import test_util |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
2 |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
3 import sys |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
4 import unittest |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
5 |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
6 class TestFetchDirectoryRemoval(test_util.TestBase): |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
7 stupid_mode_tests = True |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
8 |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
9 def test_removal(self): |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
10 repo = self._load_fixture_and_fetch('dir_removal.svndump', |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
11 layout='single', |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
12 subdir='dir1') |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
13 self.assertEqual(sorted(repo['tip'].manifest().keys()), |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
14 ['1.txt', 'dir2/2.txt']) |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
15 extra = repo['tip'].extra().copy() |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
16 extra.pop('convert_revision', None) |
8c7dae2e0f54
svnwrap: don't add paths to revision outside of subdir
Ivan Lezhankin <ilezhankin@yandex-team.ru>
parents:
diff
changeset
|
17 self.assertEqual(extra, {'branch': 'default'}) |