Show More
@@ -730,6 +730,9 b' def addchangegroup(repo, source, srctype' | |||||
730 | - fewer heads than before: -1-removed heads (-2..-n) |
|
730 | - fewer heads than before: -1-removed heads (-2..-n) | |
731 | - number of heads stays the same: 1 |
|
731 | - number of heads stays the same: 1 | |
732 | """ |
|
732 | """ | |
|
733 | if not source: | |||
|
734 | return 0 | |||
|
735 | ||||
733 | repo = repo.unfiltered() |
|
736 | repo = repo.unfiltered() | |
734 | def csmap(x): |
|
737 | def csmap(x): | |
735 | repo.ui.debug("add changeset %s\n" % short(x)) |
|
738 | repo.ui.debug("add changeset %s\n" % short(x)) | |
@@ -738,9 +741,6 b' def addchangegroup(repo, source, srctype' | |||||
738 | def revmap(x): |
|
741 | def revmap(x): | |
739 | return cl.rev(x) |
|
742 | return cl.rev(x) | |
740 |
|
743 | |||
741 | if not source: |
|
|||
742 | return 0 |
|
|||
743 |
|
||||
744 | changesets = files = revisions = 0 |
|
744 | changesets = files = revisions = 0 | |
745 |
|
745 | |||
746 | tr = repo.transaction("\n".join([srctype, util.hidepassword(url)])) |
|
746 | tr = repo.transaction("\n".join([srctype, util.hidepassword(url)])) |
General Comments 0
You need to be logged in to leave comments.
Login now