Microsoft 开发人员网络 > 论坛主页 > 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

  • 2009年6月25日 18:49jstarbird 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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

答案

  • 2009年6月25日 21:16jstarbird 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    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.
    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

全部回复

  • 2009年6月25日 20:27jstarbird 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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
  • 2009年6月25日 21:16jstarbird 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    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.
    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
  • 2009年6月26日 2:44Catherine Sea 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi J,

    Thanks for the update. I'm glad to hear that you've got it to work.

    Catherine Sea
    http://www.scmsoftwareconfigurationmanagement.com