mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
fetch: patch cornercase in children calculation (issue2773)
This commit is contained in:
parent
e71ca537a7
commit
02441ac6a9
@ -83,7 +83,7 @@ def fetch(ui, repo, source='default', **opts):
|
||||
# Is this a simple fast-forward along the current branch?
|
||||
newheads = repo.branchheads(branch)
|
||||
newchildren = repo.changelog.nodesbetween([parent], newheads)[2]
|
||||
if len(newheads) == 1:
|
||||
if len(newheads) == 1 and len(newchildren):
|
||||
if newchildren[0] != parent:
|
||||
return hg.clean(repo, newchildren[0])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user