iniesta Posted April 24, 2013 Report Share Posted April 24, 2013 Hi, I need to get the content of a changeset from the command line. How can I get it if I have the label name of that changeset? Thanks. Regards. Link to comment Share on other sites More sharing options...
EdDev Posted April 24, 2013 Report Share Posted April 24, 2013 Try this: Find changeset based on give label: cm find label where name='labelname' on repository 'reponame' --format="{changeset}" --nototal List changeset changes: cm find revision where changeset = <ID> on repository 'reponame' Hope this helps, Ed. Link to comment Share on other sites More sharing options...
iniesta Posted April 25, 2013 Author Report Share Posted April 25, 2013 Thanks Ed, but How can I get the content within that changeset from the command line from number changeset obtained ? I want to get libraries, classes... of this changeset to save in a file, display on screen. Thanks. Regards. Link to comment Share on other sites More sharing options...
calbzam Posted April 25, 2013 Report Share Posted April 25, 2013 Hi, To get a specified revision you can use this command indicating changeset or label: e.g. (where "c:\tmp\workspace" is workspace path) cm cat c:\tmp\workspace#cs:3 cm cat c:\tmp\workspace#lbl:BL001 Best regards, Carlos Link to comment Share on other sites More sharing options...
iniesta Posted April 25, 2013 Author Report Share Posted April 25, 2013 Thanks Carlos, I execute the command "cm cat" and I obtain a list of files of changeset, but I also need to obtain the files that contain the changeset physically for for storing them in my pc and power execute them. Regards. Link to comment Share on other sites More sharing options...
manu Posted April 25, 2013 Report Share Posted April 25, 2013 Hi Iniesta, I'm not sure if what you are trying to get is the full changeset content or only the changes inside the changeset. Can you please clarify it? Link to comment Share on other sites More sharing options...
iniesta Posted April 25, 2013 Author Report Share Posted April 25, 2013 Hi, Manu I want to get full changeset content from command line, to storing it in my pc and power execute. I need obtain all the libraries, if that changeset have 1 library and the previos 2 and exist 50 libraries in total, then can obtain all the libraries. I hope you understand what I need. Thanks Link to comment Share on other sites More sharing options...
manu Posted April 25, 2013 Report Share Posted April 25, 2013 Ummmm, In that case the easiest solution is to create a new workspace (cm mwkw myWks --repository=X) and then update the workspace to your desired changeset. We are about to public a new command "cm switch cs:245" that is going to be smarter than the "cm update --changeset". Link to comment Share on other sites More sharing options...
iniesta Posted April 26, 2013 Author Report Share Posted April 26, 2013 Hi!! With the previous solution I would obtain the full content of repository. Is possible to download the full content of a determined changeset, which is labeled, in a directory created in c: and to execute its contents (libraries and executables) directly from there? Thanks, Regards Link to comment Share on other sites More sharing options...
manu Posted April 26, 2013 Report Share Posted April 26, 2013 Maybe you can give a try to this: http://codicesoftware.blogspot.com/2012/07/glassfs-plastic-made-transparent.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.