##// END OF EJS Templates
merge: check current wc branch for 'nothing to merge', not its p1...
Mads Kiilerich -
r31379:b6a6df38 default
parent child Browse files
Show More
@@ -1544,7 +1544,7 b' def update(repo, node, branchmerge, forc'
1544 raise error.Abort(_("merging with a working directory ancestor"
1544 raise error.Abort(_("merging with a working directory ancestor"
1545 " has no effect"))
1545 " has no effect"))
1546 elif pas == [p1]:
1546 elif pas == [p1]:
1547 if not mergeancestor and p1.branch() == p2.branch():
1547 if not mergeancestor and wc.branch() == p2.branch():
1548 raise error.Abort(_("nothing to merge"),
1548 raise error.Abort(_("nothing to merge"),
1549 hint=_("use 'hg update' "
1549 hint=_("use 'hg update' "
1550 "or check 'hg heads'"))
1550 "or check 'hg heads'"))
General Comments 0
You need to be logged in to leave comments. Login now