Unexpected warning - Non-recursive commit of moved/renamed folders
From: Mark Irving <mark_at_irving74.plus.com>
Date: Wed, 5 Sep 2012 02:14:09 -0700 (PDT)
[Warning: if you're experimenting with this, use a scratch repository or one where you do not have commit access.]
Take a working copy and make three or more modifications: modify a directory's SVN properties, modify a file, and SVN copy a file, so that (for example) svn status shows
src\TortoiseProc>svn status
Now select the directory in Windows Explorer and use TortoiseSVN's SVN Commit. Check (tick) only the directory and the copied file; un-check the modified file. Click OK. I get an inappropriate warning dialog:
[Window Title]
[Main Instruction]
[Content]
[Proceed with the commit] [Cancel] [Cancel]
Problems
1. The warning is wrong because no recursive commit will happen.
2. The message is also not accurate in referring to "moved/renamed" folders - should be "moved, renamed or copied" folders.
Suggestion
The test for this message uses the code in src\TortoiseProc\CommitDlg.cpp, function CCommitDlg::OnOK, about line 493.
if (entry->IsCopied())
It should, I think, test whether this entry is a directory as well as a copied thing. Perhaps the variable should be renamed bDirectoryHasCopyPlus?
TortoiseSVN 1.7.9, Build 23248 - 64 Bit , 2012/08/30 18:25:37
- Mark.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.