diff 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
line wrap: on
line diff
--- a/tests/test_push_command.py
+++ b/tests/test_push_command.py
@@ -328,6 +328,11 @@ class PushTests(unittest.TestCase):
         self.assertNotEqual(tip.node(), new_hash)
         self.assertEqual(tip['newdir/gamma'].data(), 'foo')
 
+    def test_push_existing_file_newly_symlink(self):
+        self.test_push_existing_file_newly_execute(execute=False,
+                                                   link=True,
+                                                   expected_flags='l')
+
     def test_push_existing_file_newly_execute(self, execute=True,
                                               link=False, expected_flags='x'):
         self.test_push_to_default()