hgext/fetch.py
branchstable
changeset 15748 6eb5bbaa1e73
parent 14635 217b7d83afc3
child 15749 6b84cdcb05b9
equal deleted inserted replaced
15746:4bf553038b82 15748:6eb5bbaa1e73
    81             return 0
    81             return 0
    82 
    82 
    83         # Is this a simple fast-forward along the current branch?
    83         # Is this a simple fast-forward along the current branch?
    84         newheads = repo.branchheads(branch)
    84         newheads = repo.branchheads(branch)
    85         newchildren = repo.changelog.nodesbetween([parent], newheads)[2]
    85         newchildren = repo.changelog.nodesbetween([parent], newheads)[2]
    86         if len(newheads) == 1:
    86         if len(newheads) == 1 and len(newchildren):
    87             if newchildren[0] != parent:
    87             if newchildren[0] != parent:
    88                 return hg.clean(repo, newchildren[0])
    88                 return hg.clean(repo, newchildren[0])
    89             else:
    89             else:
    90                 return 0
    90                 return 0
    91 
    91