Update and missing file in subrepo - a bug?
Michał Sznajder
michalsznajder at gmail.com
Wed Feb 22 21:55:37 UTC 2012
One of the users of THG reported [1] that update of the main
repository with a deleted file in the subrepo does not bring back file
in subrepo. Below is a way to reproduce this:
hg init test
cd test
hg init subrepo
echo "subrepo = subrepo" > .hgsub
echo a > subrepo/file
hg -R subrepo commit --addremove --message "subrepo commit"
hg commit --addremove --message "commit"
# delete file
rm subrepo/file
hg update
hg status --subrepos
! subrepo/file
IMHO this is wrong: file should be brought back. Should I file a bug?
[1] https://bitbucket.org/tortoisehg/thg/issue/1659/update-main-repository-with-a-deleted-file#comment-1108952
Michal
More information about the Mercurial
mailing list