Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a file to existing changelist

Tags:

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?

like image 809
Aman Deep Gautam Avatar asked Jan 29 '14 06:01

Aman Deep Gautam


People also ask

How do I add a file to an existing Changelist?

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.

How do I change the description of submitted Changelist in perforce?

If you don't want to do this via command-line, you can edit a changelist description in P4V. Open the changelist (right-click, "View Changelist"), and there's an "Edit" button at the bottom which makes the Description field editable, allowing you to fix a typo or confusing description for a changelist.

What does p4 add do?

p4 add opens files within the client workspace for addition to the depot. The specified files are linked to a changelist. The command can add files to a new, empty depot or to a depot that already contains files. The files are added to the depot when the changelist is committed with p4 submit .


1 Answers

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.

like image 200
jamesdlin Avatar answered Nov 15 '22 01:11

jamesdlin