This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why aren't these two get commands identical?

if I have d9program.cbl in my pvcs project and the latest revision is 1.4

Why doesn't these two commands end up with the same file?

K:\> pcli.exe -nb run -y -q get -prN:\\Pvcs\\Dinka -r1.1 -aK:\\workdir\\workfile.cbl /Subroutines/d9program.cbl

K:\> pcli.exe -nb run -y -q get -prN:\\Pvcs\\Dinka -r1.1 -p /Subroutines/d9program.cbl > K:\\workdir\\workfile.cbl

The first command yields the expected result, revision 1.1 in workfile.cbl. With the second command you end up with the latest revision 1.4 in workfile.cbl

I'm perfectly fine with the first format, just curious to what I am missing since the documentation doesn't give me any clues and it seems perfectly valid in my eyes.

//robert

  • Verified Answer

    0  

    Hi Robert,

    It looks like you identified a bug in the argument parser for the PCLI Get command. Nice find.

    At present, the -p option incorrectly reset the revision being used to the default one for the active workspace, replacing the revision that was selected using the -r option. To work around the bug, swap -r1.1 and -p so -r1.1 can set the revision to 1.1 after -p has made its own selection.

    If you have a support account, please consider submitting a case for this so I can submit the defect on your behalf. Thanks in advance.

    With kind regards,

    - Richard.

  • 0 in reply to   

    Hi Richard,

    great to know I wasn't doing some silly mistake, even though it didn't occur to me to reorder the options.

    I'll register a case so it can be fixed in a future release of PVCS.

    /Robert

  • 0   in reply to 

    Thanks, Robert. I noticed the case was submitted :-)

    Much appreciated,

    - Richard.