[issue3280] hg update -C doesn't bring deleted files from subrepos

Michal Sznajder bugs at mercurial.selenic.com
Thu Feb 23 18:39:17 UTC 2012


New submission from Michal Sznajder <michalsznajder at gmail.com>:

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

This is wrong - file should be brought back. See [2] for bug discussion.

[1] https://bitbucket.org/tortoisehg/thg/issue/1659/update-main-repository-
with-
a-deleted-file#comment-1108952

[2] http://www.selenic.com/pipermail/mercurial/2012-February/041942.html

----------
messages: 19156
nosy: szm
priority: bug
status: unread
title: hg update -C doesn't bring deleted files from subrepos

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3280>
____________________________________________________



More information about the Mercurial-devel mailing list