##// END OF EJS Templates
fetch: use update rather than clean when updating (issue3246)...
Matt Mackall -
r16091:f6e9c731 stable
parent child Browse files
Show More
@@ -85,7 +85,7 b" def fetch(ui, repo, source='default', **"
85 newchildren = repo.changelog.nodesbetween([parent], newheads)[2]
85 newchildren = repo.changelog.nodesbetween([parent], newheads)[2]
86 if len(newheads) == 1 and len(newchildren):
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.update(repo, newchildren[0])
89 else:
89 else:
90 return 0
90 return 0
91
91
General Comments 0
You need to be logged in to leave comments. Login now