Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I detect if a changeset renames a file?

I'm using the CLI, and I need to detect if any of the files in the changeset I'm about to resume have been renamed (specifically if the capitalization in the filename has been renamed).  How can I detect file renames?

0 votes

Comments

hi Lauren,
Can you provide the current command you are using to resume? Also do you want to see if the changeset has the changes before resuming it? Or it is ok during resume?


The command I use is
lscm resume changeset  [changesetId] -t [workspaceId] -r [repoUrl] --overwrite-uncommitted

At any point in the resume process is fine.



One answer

Permanent link
You can try using --json with scm status before resuming, and look for
                                        "move": true,
string.  If it is found, you can further examine the string to check for the case change:
                                    "new-path": "\/Xyz.txt",
                                    "path": "\/xyz.txt",
(this is of course assuming that the file was renamed using scm move.  Otherwise, you'd look for the file deletion and addition).

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,204
× 87

Question asked: Jun 18 '15, 7:37 a.m.

Question was seen: 3,112 times

Last updated: Jul 15 '15, 11:47 a.m.

Confirmation Cancel Confirm