Changeset - 9740ec3be07a
[Not reviewed]
default
0 1 1
Mads Kiilerich - 11 years ago 2014-12-15 13:47:36
madski@unity3d.com
diff: test rename with tab after ---/+++ and bare CR in diff
2 files changed with 25 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/fixtures/hg_diff_rename_space_cr.diff
Show inline comments
 
new file 100644
 
diff --git a/ohno b/ohyes
 
rename from ohno
 
rename to ohyes
 
--- a/ohno	
 
+++ b/ohyes	
 
@@ -1,5 +1,6 @@
 
 1
 
-2+ 2
 
-3 
 
+2
 
+3
 
 4
 
@@ -5,3 +6,4 @@
 
 5
 
 6
 
 7
 
+8
kallithea/tests/models/test_diff_parsers.py
Show inline comments
 
@@ -243,13 +243,20 @@ DIFF_FIXTURES = {
 
         {'added': 2,
 
          'deleted': 1,
 
          'binary': False,
 
          'ops': {COPIED_FILENODE: 'file copied from file4 to file5',
 
                  CHMOD_FILENODE: 'modified file chmod 100755 => 100644',
 
                  MOD_FILENODE: 'modified file'}}),
 
    ]
 
    ],
 
    'hg_diff_rename_space_cr.diff': [
 
        ('ohyes', 'R',
 
         {'added': 4,
 
          'deleted': 2,
 
          'binary': False,
 
          'ops': {RENAMED_FILENODE: 'file renamed from ohno to ohyes'}}),
 
    ],
 
}
 

	
 

	
 
class DiffLibTest(BaseTestCase):
 

	
 
    @parameterized.expand([(x,) for x in DIFF_FIXTURES])
0 comments (0 inline, 0 general)