[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] [Bug] Checkout on folder with existing files fails.

From: Mark Pickersgill <mpickers_at_tpg.com.au>
Date: 2005-04-13 01:13:18 CEST

Note: I realize that this isn't the "best practice" way to import and
checkout a project, however TortoiseSVN doesn't handle it too gracefully.

Steps to reproduce:
- New folder "D:\projects\test"
- Added two .pas files to this folder
- Used SVN import to import to: file:///D:/SVNROOT/test/trunk
- Right clicked on the folder and selected "SVN Checkout..."
- Checkout dialog was filled out with:
    SVN repository: file:///D:/SVNROOT/test/trunk
    Checkout folder: D:\projects\test
 
- A warning appears saying "The target folder is not empty! Are you sure
you want to check out into that folder?"
- Click "yes"
- An error is reported saying "Failed to add file
'd:/projects/test/AppSettings.pas': object of the same name already exists"

- Right mouse click on the "D:\projects\test" folder and the options
have now changed to "SVN Update" and "SVN Commit"
  even though the checkout supposedly failed.
- The "SVN Update..." option fails and the "SVN Commit..." doesn't do
anything.

The only way around it is to removed the files from the folder and
re-checkout the project.

Ideally, when the Warning message comes up it would tell you that it was
going to overwrite the files in that folder. Then if you selected "yes",
it would delete/overwrite only the files that are in that project that
you are checking out.

Alternatively, if the failing to checkout error message should still
appear, at least ensure that the checkout fails as a complete unit and
not change the menu items to Update and Commit.

cheers
Mark Pickersgill
Received on Wed Apr 13 01:13:40 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.