Show More
@@ -573,7 +573,8 b' def differ(org_repo, org_ref, other_repo' | |||||
573 | :type other_ref: |
|
573 | :type other_ref: | |
574 | """ |
|
574 | """ | |
575 |
|
575 | |||
576 |
bundlerepo = |
|
576 | bundlerepo = None | |
|
577 | ignore_whitespace = False | |||
577 | context = 3 |
|
578 | context = 3 | |
578 | org_repo = org_repo.scm_instance._repo |
|
579 | org_repo = org_repo.scm_instance._repo | |
579 | other_repo = other_repo.scm_instance._repo |
|
580 | other_repo = other_repo.scm_instance._repo | |
@@ -604,12 +605,14 b' def differ(org_repo, org_ref, other_repo' | |||||
604 | buf.write(chunk) |
|
605 | buf.write(chunk) | |
605 |
|
606 | |||
606 | buf.seek(0) |
|
607 | buf.seek(0) | |
|
608 | # replace chunked _stream with data that can do tell() and seek() | |||
607 | unbundle._stream = buf |
|
609 | unbundle._stream = buf | |
608 |
|
610 | |||
609 | ui = make_ui('db') |
|
611 | ui = make_ui('db') | |
610 | bundlerepo = InMemoryBundleRepo(ui, path=org_repo.root, |
|
612 | bundlerepo = InMemoryBundleRepo(ui, path=org_repo.root, | |
611 | bundlestream=unbundle) |
|
613 | bundlestream=unbundle) | |
612 |
return ''.join(patch.diff(bundlerepo or org_repo, node2=other_ref, |
|
614 | return ''.join(patch.diff(bundlerepo or org_repo, node2=other_ref, | |
|
615 | opts=opts)) | |||
613 | else: |
|
616 | else: | |
614 | return ''.join(patch.diff(org_repo, node1=org_ref, node2=other_ref, |
|
617 | return ''.join(patch.diff(org_repo, node1=org_ref, node2=other_ref, | |
615 | opts=opts)) |
|
618 | opts=opts)) |
General Comments 0
You need to be logged in to leave comments.
Login now