equal
deleted
inserted
replaced
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 |