comparison tests/test_fetch_dir_removal.py @ 1509:8c7dae2e0f54

svnwrap: don't add paths to revision outside of subdir It prevents from closing the default branch on some occasional removal of directory from outside of subdir in a single layout.
author Ivan Lezhankin <ilezhankin@yandex-team.ru>
date Tue, 23 May 2017 15:09:02 +0300
parents
children
comparison
equal deleted inserted replaced
1508:5441a9d1fd50 1509:8c7dae2e0f54
1 import test_util
2
3 import sys
4 import unittest
5
6 class TestFetchDirectoryRemoval(test_util.TestBase):
7 stupid_mode_tests = True
8
9 def test_removal(self):
10 repo = self._load_fixture_and_fetch('dir_removal.svndump',
11 layout='single',
12 subdir='dir1')
13 self.assertEqual(sorted(repo['tip'].manifest().keys()),
14 ['1.txt', 'dir2/2.txt'])
15 extra = repo['tip'].extra().copy()
16 extra.pop('convert_revision', None)
17 self.assertEqual(extra, {'branch': 'default'})