Microsoft Developer Network >
Domovská stránka fór
>
Visual Studio Source Control and SourceSafe
>
Having an issue with the VSS 2005 using Undocheckout on command line
Having an issue with the VSS 2005 using Undocheckout on command line
- This is using VSS 2005 with latest patch, logged in as the same user as the files that are checked out and on the same system. ssdir is set correctly, ss workfold is set correctly. When I run SS undocheckout * -P -R -G- it accepts the command and lists all the sub folders of the project but it does not undo any checkouts. I've also tried doing this from within a single folder, using the * that is, and it still will not work.
I did check the user ini file and it does not have the setting for Keep Files Checked out so it isn't that either.
I've also tried *.*, I've tried just -P, just -P -R, makes no difference.
If I use the SSexplorer and undo the checkouts it works but this does me no good as I need to do this from the command line.
Has anyone experienced this before??
Thanks,
J
Odpovědi
Progress. Well it appears the VSS docs are incorrect, assuming you don't need to use the -P option to indicidate a particular project you leave out the -P from my earlier given command, ss undocheckout * -P -R -G- instead use ss undocheckout * -R -G- , then it will actually undo most of the checkouts.This is using VSS 2005 with latest patch, logged in as the same user as the files that are checked out and on the same system. ssdir is set correctly, ss workfold is set correctly. When I run SS undocheckout * -P -R -G- it accepts the command and lists all the sub folders of the project but it does not undo any checkouts. I've also tried doing this from within a single folder, using the * that is, and it still will not work.
I did check the user ini file and it does not have the setting for Keep Files Checked out so it isn't that either.
I've also tried *.*, I've tried just -P, just -P -R, makes no difference.
If I use the SSexplorer and undo the checkouts it works but this does me no good as I need to do this from the command line.
Has anyone experienced this before??
Thanks,
J
To add to this, I tried using a specific file, like the VSS example, SS undocheckout filename.ext , and I get the response "filename.ext is not an existing filename or project." I am in the folder of the file which matches the project path, the file is local, there are no permission restrictions, and the file is writable. I've tried this on multiple systems with multiple logins all with the same results so it seems like SS undocheckout doesn't work correctly.
Can anyone give me some feedback, let me know if you can experience the same thing or not.
Thanks,
J
I then found I needed to uncheck the "Undo check out of a modified file" option under Options | Warnings. This then made it so it could Undo all the files.
Thanks,
J- Označen jako odpověďRong-Chun ZhangMSFT, Moderátor2. července 2009 10:59
Všechny reakce
This is using VSS 2005 with latest patch, logged in as the same user as the files that are checked out and on the same system. ssdir is set correctly, ss workfold is set correctly. When I run SS undocheckout * -P -R -G- it accepts the command and lists all the sub folders of the project but it does not undo any checkouts. I've also tried doing this from within a single folder, using the * that is, and it still will not work.
I did check the user ini file and it does not have the setting for Keep Files Checked out so it isn't that either.
I've also tried *.*, I've tried just -P, just -P -R, makes no difference.
If I use the SSexplorer and undo the checkouts it works but this does me no good as I need to do this from the command line.
Has anyone experienced this before??
Thanks,
J
To add to this, I tried using a specific file, like the VSS example, SS undocheckout filename.ext , and I get the response "filename.ext is not an existing filename or project." I am in the folder of the file which matches the project path, the file is local, there are no permission restrictions, and the file is writable. I've tried this on multiple systems with multiple logins all with the same results so it seems like SS undocheckout doesn't work correctly.
Can anyone give me some feedback, let me know if you can experience the same thing or not.
Thanks,
J
Progress. Well it appears the VSS docs are incorrect, assuming you don't need to use the -P option to indicidate a particular project you leave out the -P from my earlier given command, ss undocheckout * -P -R -G- instead use ss undocheckout * -R -G- , then it will actually undo most of the checkouts.This is using VSS 2005 with latest patch, logged in as the same user as the files that are checked out and on the same system. ssdir is set correctly, ss workfold is set correctly. When I run SS undocheckout * -P -R -G- it accepts the command and lists all the sub folders of the project but it does not undo any checkouts. I've also tried doing this from within a single folder, using the * that is, and it still will not work.
I did check the user ini file and it does not have the setting for Keep Files Checked out so it isn't that either.
I've also tried *.*, I've tried just -P, just -P -R, makes no difference.
If I use the SSexplorer and undo the checkouts it works but this does me no good as I need to do this from the command line.
Has anyone experienced this before??
Thanks,
J
To add to this, I tried using a specific file, like the VSS example, SS undocheckout filename.ext , and I get the response "filename.ext is not an existing filename or project." I am in the folder of the file which matches the project path, the file is local, there are no permission restrictions, and the file is writable. I've tried this on multiple systems with multiple logins all with the same results so it seems like SS undocheckout doesn't work correctly.
Can anyone give me some feedback, let me know if you can experience the same thing or not.
Thanks,
J
I then found I needed to uncheck the "Undo check out of a modified file" option under Options | Warnings. This then made it so it could Undo all the files.
Thanks,
J- Označen jako odpověďRong-Chun ZhangMSFT, Moderátor2. července 2009 10:59
- Hi J,
Thanks for the update. I'm glad to hear that you've got it to work.
Catherine Sea
http://www.scmsoftwareconfigurationmanagement.com

