Show More
@@ -525,7 +525,8 b' class FilesController(BaseRepoController' | |||
|
525 | 525 | try: |
|
526 | 526 | node1 = c.changeset_1.get_node(f_path) |
|
527 | 527 | if node1.is_dir(): |
|
528 |
raise NodeError('%s path is a %s not a file' |
|
|
528 | raise NodeError('%s path is a %s not a file' | |
|
529 | % (node1, type(node1))) | |
|
529 | 530 | except NodeDoesNotExistError: |
|
530 | 531 | c.changeset_1 = EmptyChangeset(cs=diff1, |
|
531 | 532 | revision=c.changeset_1.revision, |
@@ -539,7 +540,9 b' class FilesController(BaseRepoController' | |||
|
539 | 540 | c.changeset_2 = c.rhodecode_repo.get_changeset(diff2) |
|
540 | 541 | try: |
|
541 | 542 | node2 = c.changeset_2.get_node(f_path) |
|
542 | raise NodeError('%s path is a %s not a file' % (node2, type(node2))) | |
|
543 | if node2.is_dir(): | |
|
544 | raise NodeError('%s path is a %s not a file' | |
|
545 | % (node2, type(node2))) | |
|
543 | 546 | except NodeDoesNotExistError: |
|
544 | 547 | c.changeset_2 = EmptyChangeset(cs=diff2, |
|
545 | 548 | revision=c.changeset_2.revision, |
General Comments 0
You need to be logged in to leave comments.
Login now