I am trying to extract files to a local path from a changeset. I'm trying this:
c:\ws1>lscm.bat changeset extract -r local -w "ws2" -d "dir" 1111 "/p1/file.bat" "dir/p1/file.bat"
However, I get this error:
Problem running 'changeset extract':
Could not initialize data area. Directory "C:\ws1\dir\p1\" has shared ancestor "C:\ws1" and cannot be used as a shared root.
I thought I'd used this command in past with success, but perhaps I was in a sandbox already for ws1. For the life of me I can't figure out why you would use this command if you were already in a sandbox. But if I try to specify a directory outside of my current sandbox, I get this:
c:\ws1>lscm.bat changeset extract -r local -w "ws2" -d "c:\temp" 1111 "/p1/file.bat" "/p1/file.bat"
Problem running 'changeset extract':
Could not initialize data area. Directory is not shared: C:\temp
What I want to do is extract files from a changeset on the server to a non-shared filepath on my local. Is that possible? If not, what is the purpose of lscm changeset extract?
Thanks!
Andy
Update 3/20/14 -- the initial question is answered (see below) but interestingly, it seemed like it could not locate the changeset while I was in a sandbox:
Note:
c:\ws1>lscm -u y ls changes -r local -w "ws2" 1187
Change sets:
(1187:_tx8hga74EeOuEP2tHKCK0A) ---@ Andrew P Jewell "<No comment>"
Component: (1051:_St4YMairEeOuD_2tHKCK0A) "rtctool"
Modified: 18-Mar-2014 04:55 PM
Changes:
--a-- (1261:_3LTtMKuNEeOBno5i1mDeiA) \build.gradle
--a-- (1266:_3LqSgKuNEeOBno5i1mDeiA) \gradle.properties
--a-- (1269:_TStFkKn1EeODCM_Vsp27Fw) \logging.properties
--a-- (1262:_OSZwEK65EeOBno5i1mDeiA) \src\org\kp\build\cmdline\CliOptions.java
c:\ws1>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "\build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"\build.gradle" does not exist within the changeset.
c:\ws1>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"build.gradle" does not exist within the changeset.
c:\ws1>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "./build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"./build.gradle" does not exist within the changeset.
c:\ws1>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "/build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"/build.gradle" does not exist within the changeset.
c:\ws1>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "/rtctool/build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"/rtctool/build.gradle" does not exist within the changeset.
c:\ws1>lscm.bat changeset extract -r local _tx8hga74EeOuEP2tHKCK0A "/rtctool/build.gradle" "c:\temp\build.gradle"
Problem running 'changeset extract':
"/rtctool/build.gradle" does not exist within the changeset.
c:\ws1>cd \temp
c:\temp>lscm.bat changeset extract -r local -w "ws2" _tx8hga74EeOuEP2tHKCK0A "/build.gradle" "c:\temp\build.gradle"
Successfully extracted file to "C:\temp\build.gradle".
c:\temp>