Microsoft Developer Network > 포럼 홈 > 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일 목요일 오후 6: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일 목요일 오후 9: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일 목요일 오후 8: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일 목요일 오후 9: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