Show More
@@ -738,6 +738,9 b' class _deltacomputer(object):' | |||||
738 | Returns the first acceptable candidate revision, as ordered by |
|
738 | Returns the first acceptable candidate revision, as ordered by | |
739 | _getcandidaterevs |
|
739 | _getcandidaterevs | |
740 | """ |
|
740 | """ | |
|
741 | if not revinfo.textlen: | |||
|
742 | return None # empty file do not need delta | |||
|
743 | ||||
741 | cachedelta = revinfo.cachedelta |
|
744 | cachedelta = revinfo.cachedelta | |
742 | p1 = revinfo.p1 |
|
745 | p1 = revinfo.p1 | |
743 | p2 = revinfo.p2 |
|
746 | p2 = revinfo.p2 |
General Comments 0
You need to be logged in to leave comments.
Login now