[issue2178] new file (hg cp) becomes "changed" or "M" after hg pull -u from parent
brainman
bugs at mercurial.selenic.com
Mon May 10 07:19:09 UTC 2010
New submission from brainman <alex.brainman at gmail.com>:
#!/bin/sh
cd /tmp/t
rm -rf parent client
echo
# create parent repo
mkdir parent
cd parent
echo "111" > a
hg init
hg add a
hg ci -m "init"
cd .. && echo
# clone our repo
hg clone parent client
# change file in parent
cd parent
echo "222" > a
hg ci -m "change file in parent"
cd .. && echo
# copy file and then pull changes from parent
cd client
hg cp a b
echo "b WAS COPY (A + R)"
hg st -C
hg pull -u
echo "NOW b is EDIT (M), but it cannot be, it is new ..."
hg st -C
cd .. && echo
----------
messages: 12464
nosy: brainman
priority: bug
status: unread
title: new file (hg cp) becomes "changed" or "M" after hg pull -u from parent
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2178>
____________________________________________________
More information about the Mercurial-devel
mailing list