comparison rhodecode/tests/models/test_diff_parsers.py @ 4007:3e8f48ccca86

Added some missing tests for copy+chmod, copy+chmod+modify on diff parser
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 17 Jun 2013 20:10:47 +0200
parents 156cb1cdd7ad
children ffd45b185016
comparison
equal deleted inserted replaced
4006:cdf10b3df899 4007:3e8f48ccca86
221 ('file2', 'M', 221 ('file2', 'M',
222 {'added': 0, 222 {'added': 0,
223 'deleted': 0, 223 'deleted': 0,
224 'binary': True, 224 'binary': True,
225 'ops': {COPIED_FILENODE: 'file copied from file1 to file2'}}), 225 'ops': {COPIED_FILENODE: 'file copied from file1 to file2'}}),
226 ],
227 'hg_diff_copy_and_modify_file.diff': [
228 ('file3', 'M',
229 {'added': 1,
230 'deleted': 0,
231 'binary': False,
232 'ops': {COPIED_FILENODE: 'file copied from file2 to file3',
233 MOD_FILENODE: 'modified file'}}),
234 ],
235 'hg_diff_copy_and_chmod_file.diff': [
236 ('file4', 'M',
237 {'added': 0,
238 'deleted': 0,
239 'binary': True,
240 'ops': {COPIED_FILENODE: 'file copied from file3 to file4',
241 CHMOD_FILENODE: 'modified file chmod 100644 => 100755'}}),
242 ],
243 'hg_diff_copy_chmod_and_edit_file.diff': [
244 ('file5', 'M',
245 {'added': 2,
246 'deleted': 1,
247 'binary': False,
248 'ops': {COPIED_FILENODE: 'file copied from file4 to file5',
249 CHMOD_FILENODE: 'modified file chmod 100755 => 100644',
250 MOD_FILENODE: 'modified file'}}),
226 ] 251 ]
227 # 'large_diff.diff': [ 252 # 'large_diff.diff': [
228 # ('.hgignore', 'A', {'deleted': 0, 'binary': False, 'added': 3, 'ops': {1: 'new file 100644'}}), 253 # ('.hgignore', 'A', {'deleted': 0, 'binary': False, 'added': 3, 'ops': {1: 'new file 100644'}}),
229 # ('MANIFEST.in', 'A', {'deleted': 0, 'binary': False, 'added': 3, 'ops': {1: 'new file 100644'}}), 254 # ('MANIFEST.in', 'A', {'deleted': 0, 'binary': False, 'added': 3, 'ops': {1: 'new file 100644'}}),
230 # ('README.txt', 'A', {'deleted': 0, 'binary': False, 'added': 19, 'ops': {1: 'new file 100644'}}), 255 # ('README.txt', 'A', {'deleted': 0, 'binary': False, 'added': 19, 'ops': {1: 'new file 100644'}}),