Hi,
using the "Undo Add" or "Revert" function, it is not possible to remove
individual files when their parent directory has also just been added to
version control.
This is not a bug report, but a feature request.
Tested with TortoiseSVN 1.6.15 and 1.6.99 (linked against svn 1.7.0).
The root of the problem in my eyes is that checking an *added* item in
the "Revert" dialog automatically also checks all added *ancestors* up
to the root of the working copy. It seems like this logic was inherited
from the "Add" dialog, where this is perfectly OK. However, it is not OK
for undo/revert actions. When manually setting the check mark on an
added item in the "Revert" dialog, instead of automatically setting the
check mark on all of its ancestors, all *child* items should have their
check marks set.
Steps to reproduce:
1. Checkout a working copy (e.g., to D:\testwc)
2. In the root of the working copy, create a folder with a file inside:
D:\testwc\dir contains file.txt
3. Add the newly added directory and file to version control
(using "TortoiseSVN Add..." and making sure all 2 items are checked,
namely "dir" and "dir/file.txt")
4. In the root directory of the working copy, select "TortoiseSVN ->
Revert..."
5. In the "Revert" dialog, click the "Select / deselect all" check box
to make sure no items are selected for revert.
6. Click on "dir/file.txt" to set its check mark.
Expected result:
Only "dir/file.txt" is marked for revert. Clicking "OK" just reverts
"file.txt" (i.e., "dir" is still marked for addition).
Actual result:
"dir/file.txt" and "dir" are marked for revert. Clicking "OK" also
reverts "dir". It is not possible to revert just the addition of the
file from this dialog. Note that this is also not possible from the
"Revert" dialog from within in the "dir" directory to just revert the file.
Note that when "dir" contains two files (say "file.txt" and
"file2.txt"), enabling the check mark for "file.txt" in the "Revert"
dialog does not check "file2.txt" (as expected), which causes the
operation to fail anyway. It would be more intuitive if "dir" would not
be selected for revert.
Workaround:
It is possible to revert just "dir/file.txt" in the "Revert" dialog that
appears when directly right-clicking on "file.txt" and choosing
"TortoiseSVN -> Revert".
Version information:
-----
TortoiseSVN 1.6.15, Build 21041 - 32 Bit , 2011/03/23 18:00:27
Subversion 1.6.16
apr 1.3.8
apr-utils 1.3.9
neon 0.29.5
OpenSSL 1.0.0d 8 Feb 2011
zlib 1.2.5
-----
TortoiseSVN 1.6.99, Build 21232 - 64 Bit -dev, 2011/04/28 01:49:13
Subversion 1.7.0, -dev
apr 1.4.2
apr-utils 1.3.11
neon 0.29.5
OpenSSL 1.0.0d 8 Feb 2011
zlib 1.2.5
-----
--
Best regards,
Michael 'Sidewinder' Geisinger
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2727442
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-30 16:19:49 CEST