lehn0058
lehn0058

Reputation: 20257

How do you move a directory in perforce using the command line?

I am trying to move a directory into another directory in perforce. This is by the command line. The only command I can find to move items is the move command, which only moves individual files. Is their a way to just move all of the files in one directory to another? My directory structure has many levels and it would be tedious to have to issue the command to move each one.

Upvotes: 11

Views: 11575

Answers (1)

xtofl
xtofl

Reputation: 41519

You can use p4 move to move whole tree. But before that, all files in the moved directory have to be opened for edit or add.

For example:

p4 edit //xyz/...
p4 move //xyz/... //abc/...

will move all already tracked files in //xyz and its subdirectories.

(cfr the documentation :)

Upvotes: 20

Related Questions