##// END OF EJS Templates
imported patch foo
Matt Mackall -
r3441:ef2e990f default
parent child Browse files
Show More
@@ -221,8 +221,6 b' def update(repo, node):'
221 221 """update the working directory to node, merging linear changes"""
222 222 stats = _merge.update(repo, node, False, False, None, None)
223 223 _showstats(repo, stats)
224 branch = repo.changectx(node).branch()
225 repo.opener("branch", "w").write(branch + "\n")
226 224 if stats[3]:
227 225 repo.ui.status(_("There are unresolved merges with"
228 226 " locally modified files.\n"))
@@ -231,8 +229,6 b' def update(repo, node):'
231 229 def clean(repo, node, wlock=None, show_stats=True):
232 230 """forcibly switch the working directory to node, clobbering changes"""
233 231 stats = _merge.update(repo, node, False, True, None, wlock)
234 branch = repo.changectx(node).branch()
235 repo.opener("branch", "w").write(branch + "\n")
236 232 if show_stats: _showstats(repo, stats)
237 233 return stats[3]
238 234
@@ -411,6 +411,9 b' def update(repo, node, branchmerge, forc'
411 411 recordupdates(repo, action, branchmerge)
412 412 repo.dirstate.setparents(fp1, fp2)
413 413 repo.hook('update', parent1=xp1, parent2=xp2, error=stats[3])
414 if not branchmerge:
415 print "yow!"
416 repo.opener("branch", "w").write(p1.branch() + "\n")
414 417
415 418 return stats
416 419
General Comments 0
You need to be logged in to leave comments. Login now