Mercurial > hgsubversion
comparison tests/test_push_dirs.py @ 1106:5cb6c95e0283 stable
Merge default and stable so I can do stable releases again.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 11 Feb 2014 12:48:49 -0500 |
parents | 56979160b3f7 |
children |
comparison
equal
deleted
inserted
replaced
1020:b5b1fce26f1f | 1106:5cb6c95e0283 |
---|---|
1 import test_util | 1 import test_util |
2 | 2 |
3 import unittest | 3 import unittest |
4 | 4 |
5 class TestPushDirectories(test_util.TestBase): | 5 class TestPushDirectories(test_util.TestBase): |
6 stupid_mode_tests = True | |
7 obsolete_mode_tests = True | |
8 | |
6 def test_push_dirs(self): | 9 def test_push_dirs(self): |
7 repo_path = self.load_and_fetch('emptyrepo.svndump')[1] | 10 repo_path = self.load_and_fetch('emptyrepo.svndump')[1] |
8 | 11 |
9 changes = [ | 12 changes = [ |
10 # Single file in single directory | 13 # Single file in single directory |
82 | 85 |
83 def test_push_single_dir_change_in_subdir(self): | 86 def test_push_single_dir_change_in_subdir(self): |
84 # Tests simple pushing from default branch to a single dir repo | 87 # Tests simple pushing from default branch to a single dir repo |
85 # Changes a file in a subdir (regression). | 88 # Changes a file in a subdir (regression). |
86 repo, repo_path = self.load_and_fetch('branch_from_tag.svndump', | 89 repo, repo_path = self.load_and_fetch('branch_from_tag.svndump', |
87 stupid=False, | |
88 layout='single', | 90 layout='single', |
89 subdir='tags') | 91 subdir='tags') |
90 changes = [('tag_r3/alpha', 'tag_r3/alpha', 'foo'), | 92 changes = [('tag_r3/alpha', 'tag_r3/alpha', 'foo'), |
91 ('tag_r3/new', 'tag_r3/new', 'foo'), | 93 ('tag_r3/new', 'tag_r3/new', 'foo'), |
92 ('new_dir/new', 'new_dir/new', 'foo'), | 94 ('new_dir/new', 'new_dir/new', 'foo'), |
101 'new_dir/new', | 103 'new_dir/new', |
102 'tag_r3', | 104 'tag_r3', |
103 'tag_r3/alpha', | 105 'tag_r3/alpha', |
104 'tag_r3/beta', | 106 'tag_r3/beta', |
105 'tag_r3/new']) | 107 'tag_r3/new']) |
106 | |
107 def suite(): | |
108 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestPushDirectories), | |
109 ] | |
110 return unittest.TestSuite(all_tests) |