Mercurial > hgsubversion
comparison tests/test_push_command.py @ 60:41dc00c7aef1
Fixed a problem where if you edited an existing symlink by replacing with another symlink, things would get corrupt.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 06 Nov 2008 09:07:13 -0600 |
parents | 80b923ab242b |
children | cc5ebdb1e8d4 |
comparison
equal
deleted
inserted
replaced
59:430af23bef4a | 60:41dc00c7aef1 |
---|---|
326 svn_url='file://' + self.repo_path) | 326 svn_url='file://' + self.repo_path) |
327 tip = self.repo['tip'] | 327 tip = self.repo['tip'] |
328 self.assertNotEqual(tip.node(), new_hash) | 328 self.assertNotEqual(tip.node(), new_hash) |
329 self.assertEqual(tip['newdir/gamma'].data(), 'foo') | 329 self.assertEqual(tip['newdir/gamma'].data(), 'foo') |
330 | 330 |
331 def test_push_existing_file_newly_symlink(self): | |
332 self.test_push_existing_file_newly_execute(execute=False, | |
333 link=True, | |
334 expected_flags='l') | |
335 | |
331 def test_push_existing_file_newly_execute(self, execute=True, | 336 def test_push_existing_file_newly_execute(self, execute=True, |
332 link=False, expected_flags='x'): | 337 link=False, expected_flags='x'): |
333 self.test_push_to_default() | 338 self.test_push_to_default() |
334 repo = self.repo | 339 repo = self.repo |
335 def file_callback(repo, memctx, path): | 340 def file_callback(repo, memctx, path): |