Why does lscm changeset extract say successful but is not successful?
I seem to have problems with this command off and on. Sometimes using little tricks works but now I'm just stumped. For example:
c:\rtctool>lscm -u y ls changes -w "hp mbe o 2013 11 01 o386600" _6ME7MRy6EeSZhI972y06VA
Now try to extract:
c:\rtctool>lscm.bat changeset extract -w "hp mbe o 2013 11 01 o386600" _6ME7MRy6EeSZhI972y06VA "mpc\CG3-alter-508-SB1-023-qc4852.sql" C:\rtctool\checkout\scbcfg\mpc\CG3-alter-508-SB1-023-qc4852.sql
c:\rtctool>lscm.bat changeset extract -w "hp mbe o 2013 11 01 o386600" _6ME7MRy6EeSZhI972y06VA "\\mpc\\CG3-alter-508-SB1-023-qc4852.sql" c:\rtctool\checkout\scbcfg\mpc\CG3-alter-508-SB1-023-qc4852.sql Problem running 'changeset extract': Unable to get canonical form of path \\mpc
Ok, none of the obvious paths are working. So let's try by UUID:
c:\rtctool>lscm.bat changeset extract -w "hp mbe o 2013 11 01 o386600" _6ME7MRy6EeSZhI972y06VA _RjVA4BkKEeSC_7ryYoonHg c:\rtctool\checkout\scbcfg\mpc\CG3-alter-508-SB1-023-qc4852.sql
Seems to work, but actually nothing is there:
c:\rtctool>dir checkout\scbcfg\mpc\
Am I doing something wrong? I'm actually revisiting code that used to work completely but apparently something has changed - it's not a version change, we've only ever had v4.0.3. Does anyone else do changeset extracts in a different way?
|
One answer
I kept running into issues with this including runtime exceptions when checking out by UUID if I'd already checked out that UUID and then deleted the file. However, I've found that it's much more predictable to checkout to a folder a single level deep (e.g. c:\temp). Seems like checking out to a longer path brings on whackiness. So for future readers, my approach was to use the UUID of the versionable path in the changeset to extract, extract it to a safe temp directory (temp directory should be as simple as possible or this can raise issues with it parsing it as a canonical path) then copy into the path you want using basic filesystem management.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.