Show More
@@ -486,6 +486,8 b' class FilesController(BaseRepoController' | |||||
486 | c.changeset_1 = c.rhodecode_repo.get_changeset(diff1) |
|
486 | c.changeset_1 = c.rhodecode_repo.get_changeset(diff1) | |
487 | try: |
|
487 | try: | |
488 | node1 = c.changeset_1.get_node(f_path) |
|
488 | node1 = c.changeset_1.get_node(f_path) | |
|
489 | if node1.is_dir(): | |||
|
490 | raise NodeError('%s path is a %s not a file' % (node1, type(node1))) | |||
489 | except NodeDoesNotExistError: |
|
491 | except NodeDoesNotExistError: | |
490 | c.changeset_1 = EmptyChangeset(cs=diff1, |
|
492 | c.changeset_1 = EmptyChangeset(cs=diff1, | |
491 | revision=c.changeset_1.revision, |
|
493 | revision=c.changeset_1.revision, | |
@@ -499,6 +501,7 b' class FilesController(BaseRepoController' | |||||
499 | c.changeset_2 = c.rhodecode_repo.get_changeset(diff2) |
|
501 | c.changeset_2 = c.rhodecode_repo.get_changeset(diff2) | |
500 | try: |
|
502 | try: | |
501 | node2 = c.changeset_2.get_node(f_path) |
|
503 | node2 = c.changeset_2.get_node(f_path) | |
|
504 | raise NodeError('%s path is a %s not a file' % (node2, type(node2))) | |||
502 | except NodeDoesNotExistError: |
|
505 | except NodeDoesNotExistError: | |
503 | c.changeset_2 = EmptyChangeset(cs=diff2, |
|
506 | c.changeset_2 = EmptyChangeset(cs=diff2, | |
504 | revision=c.changeset_2.revision, |
|
507 | revision=c.changeset_2.revision, |
General Comments 0
You need to be logged in to leave comments.
Login now