Jump to content

Command Line to get file contents for a specific change set


Richard McKenzie

Recommended Posts

Greetings, Amazing People of Plastic!

I'm currently on a mission to seek the contents of a file, given its change set number, and dump to the stdout. I've come as far as "cm cat" being my weapon of choice, however I've run into difficulty while using it. I'd prefer the solution to be workspace agnostic (which I believe "cm cat" is).

If you can assist, it would be greatly appreciated!

Kind regards,

Richard

 

Link to comment
Share on other sites

Quote

Greetings, Amazing People of Plastic!

giphy.gif

 

Quote

 

I'm currently on a mission to seek the contents of a file, given its change set number, and dump to the stdout. I've come as far as "cm cat" being my weapon of choice, however I've run into difficulty while using it. I'd prefer the solution to be workspace agnostic (which I believe "cm cat" is).

If you can assist, it would be greatly appreciated!

 

Try this!

cm cat serverpath:/Assets/_Complete-Game.meta#cs:2@UG-MK1@localhost:8087 --file=_Complete-Game.meta

I do recommend you to use "--file" instead of dumping the stdout, you might have issues with the file encoding and strange symbols the bash can't handle and the --file parameter masters it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...