##// END OF EJS Templates
update: check wc.dirty() before setting overwrite=True...
Augie Fackler -
r14663:88cb01c4 default
parent child Browse files
Show More
@@ -525,7 +525,7 b' def update(repo, node, branchmerge, forc'
525 525 elif not overwrite:
526 526 if pa == p1 or pa == p2: # linear
527 527 pass # all good
528 elif wc.files() or wc.deleted():
528 elif wc.dirty(missing=True):
529 529 raise util.Abort(_("crosses branches (merge branches or use"
530 530 " --clean to discard changes)"))
531 531 elif onode is None:
General Comments 0
You need to be logged in to leave comments. Login now