Mercurial > hgsubversion
comparison tests/test_fetch_mappings.py @ 822:033b86e0f56d
stupid/filemap: disable this since it doesn't currently work
hg 1.9 dramatically cleaned up patch application, but unfortunately
this breaks stupid mode with filemaps. In the name of getting a
release out the door, disabling this feature for now. There will be
changes required in hg to make this work again, so we may just drop
the feature entirely if nobody's interested.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 30 Sep 2011 17:01:35 -0500 |
parents | 86d124a8768e |
children | 312b37bc5e20 |
comparison
equal
deleted
inserted
replaced
821:f28e0f54a6ef | 822:033b86e0f56d |
---|---|
24 return os.path.join(self.tmpdir, 'filemap') | 24 return os.path.join(self.tmpdir, 'filemap') |
25 | 25 |
26 @property | 26 @property |
27 def branchmap(self): | 27 def branchmap(self): |
28 return os.path.join(self.tmpdir, 'branchmap') | 28 return os.path.join(self.tmpdir, 'branchmap') |
29 | 29 |
30 @property | 30 @property |
31 def tagmap(self): | 31 def tagmap(self): |
32 return os.path.join(self.tmpdir, 'tagmap') | 32 return os.path.join(self.tmpdir, 'tagmap') |
33 | 33 |
34 def test_author_map(self, stupid=False): | 34 def test_author_map(self, stupid=False): |
110 self.wc_path, filemap=self.filemap) | 110 self.wc_path, filemap=self.filemap) |
111 self.assertEqual(node.hex(self.repo[0].node()), '88e2c7492d83e4bf30fbb2dcbf6aa24d60ac688d') | 111 self.assertEqual(node.hex(self.repo[0].node()), '88e2c7492d83e4bf30fbb2dcbf6aa24d60ac688d') |
112 self.assertEqual(node.hex(self.repo['default'].node()), 'e524296152246b3837fe9503c83b727075835155') | 112 self.assertEqual(node.hex(self.repo['default'].node()), 'e524296152246b3837fe9503c83b727075835155') |
113 | 113 |
114 def test_file_map_stupid(self): | 114 def test_file_map_stupid(self): |
115 self.test_file_map(True) | 115 # TODO: re-enable test if we ever reinstate this feature |
116 self.assertRaises(hgutil.Abort, self.test_file_map, True) | |
116 | 117 |
117 def test_file_map_exclude(self, stupid=False): | 118 def test_file_map_exclude(self, stupid=False): |
118 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump') | 119 test_util.load_svndump_fixture(self.repo_path, 'replace_trunk_with_branch.svndump') |
119 filemap = open(self.filemap, 'w') | 120 filemap = open(self.filemap, 'w') |
120 filemap.write("exclude alpha\n") | 121 filemap.write("exclude alpha\n") |
125 self.wc_path, filemap=self.filemap) | 126 self.wc_path, filemap=self.filemap) |
126 self.assertEqual(node.hex(self.repo[0].node()), '2c48f3525926ab6c8b8424bcf5eb34b149b61841') | 127 self.assertEqual(node.hex(self.repo[0].node()), '2c48f3525926ab6c8b8424bcf5eb34b149b61841') |
127 self.assertEqual(node.hex(self.repo['default'].node()), 'b37a3c0297b71f989064d9b545b5a478bbed7cc1') | 128 self.assertEqual(node.hex(self.repo['default'].node()), 'b37a3c0297b71f989064d9b545b5a478bbed7cc1') |
128 | 129 |
129 def test_file_map_exclude_stupid(self): | 130 def test_file_map_exclude_stupid(self): |
130 self.test_file_map_exclude(True) | 131 # TODO: re-enable test if we ever reinstate this feature |
132 self.assertRaises(hgutil.Abort, self.test_file_map_exclude, True) | |
131 | 133 |
132 def test_branchmap(self, stupid=False): | 134 def test_branchmap(self, stupid=False): |
133 test_util.load_svndump_fixture(self.repo_path, 'branchmap.svndump') | 135 test_util.load_svndump_fixture(self.repo_path, 'branchmap.svndump') |
134 branchmap = open(self.branchmap, 'w') | 136 branchmap = open(self.branchmap, 'w') |
135 branchmap.write("badname = good-name # stuffy\n") | 137 branchmap.write("badname = good-name # stuffy\n") |