Add a file to existing changelist

43.6k Views Asked by At

I edited few files in my workspace and did p4 change. Then I remembered that I have to make some more edits to additional files(not in the changelist). I opened those files with p4 edit but how to add these files to existing changelist. Is there a way to do it?

4

There are 4 best solutions below

5
On BEST ANSWER

In general you can use:

p4 reopen -c CLN FILE ...

to move open files into the specified changelist (regardless of whether they were open for edit, add, etc.).

CLN may be default to dissociate the specified files from any numbered changelist.

3
On

You can say:

p4 edit -c changelist# file ...

where changelist# refers to the pending changelist.

0
On

file not open

p4 edit -c [changelist] [file]

file open already

p4 reopen -c [changelist] [file]

be lazy

p4 edit [file] && p4 reopen -c [changelist] [file]
2
On

p4 edit -c changelist file same works for sd