[issue2131] Invalid and/or dubious warnings in push with named branches
Peter Arrenbrecht
bugs at mercurial.selenic.com
Thu Apr 8 12:02:41 UTC 2010
New submission from Peter Arrenbrecht <peter.arrenbrecht at gmail.com>:
push warns about new heads on branch B when only pushing csets on branch A.
This cannot be right. Might be related to issue 1974.
Tests to append to test-push-warn:
echo % check prepush with new branch head on former topo non-head
hg init n
cd n
hg branch A
echo a >a
hg ci -Ama
hg branch B
echo b >b
hg ci -Amb
# b is now branch head of B, and a topological head
# a is now branch head of A, but not a topological head
hg clone . inner
cd inner
hg up B
echo b1 >b1
hg ci -Amb1
# in the clone b1 is now the head of B
cd ..
hg up 0
echo a2 >a2
hg ci -Ama2
# a2 is now the new branch head of A, and a new topological head
# it replaces a former inner branch head, so it should at most warn about A,
not B
hg out inner --template "{rev}: {desc}\n"
hg push inner
cd ..
echo % check prepush with new branch head on former topo head
hg init o
cd o
hg branch A
echo a >a
hg ci -Ama
hg branch B
echo b >b
hg ci -Amb
# b is now branch head of B, and a topological head
hg up 0
echo a1 >a1
hg ci -Ama1
# a1 is now branch head of A, and a topological head
hg clone . inner
cd inner
hg up B
echo b1 >b1
hg ci -Amb1
# in the clone b1 is now the head of B
cd ..
echo a2 >a2
hg ci -Ama2
# a2 is now the new branch head of A, and a topological head
# it replaces a former topological and branch head, so this should not warn
hg out inner --template "{rev}: {desc}\n"
hg push inner
cd ..
----------
assignedto: parren
messages: 12243
nosy: parren
priority: bug
status: chatting
title: Invalid and/or dubious warnings in push with named branches
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2131>
____________________________________________________
More information about the Mercurial-devel
mailing list