diff --git a/kallithea/tests/fixtures/hg_diff_rename_space_cr.diff b/kallithea/tests/fixtures/hg_diff_rename_space_cr.diff new file mode 100644 --- /dev/null +++ b/kallithea/tests/fixtures/hg_diff_rename_space_cr.diff @@ -0,0 +1,17 @@ +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 diff --git a/kallithea/tests/models/test_diff_parsers.py b/kallithea/tests/models/test_diff_parsers.py --- a/kallithea/tests/models/test_diff_parsers.py +++ b/kallithea/tests/models/test_diff_parsers.py @@ -246,7 +246,14 @@ DIFF_FIXTURES = { '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'}}), + ], }