Show More
@@ -83,7 +83,7 b" def fetch(ui, repo, source='default', **" | |||
|
83 | 83 | # Is this a simple fast-forward along the current branch? |
|
84 | 84 | newheads = repo.branchheads(branch) |
|
85 | 85 | newchildren = repo.changelog.nodesbetween([parent], newheads)[2] |
|
86 | if len(newheads) == 1: | |
|
86 | if len(newheads) == 1 and len(newchildren): | |
|
87 | 87 | if newchildren[0] != parent: |
|
88 | 88 | return hg.clean(repo, newchildren[0]) |
|
89 | 89 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now