views:

55

answers:

1

Hi,

I am new to Perforce.

Is it possible in P4 to have a confirmation step before using some deletion command.

E.g.:

  • deleting a workspace has no confirmation step ( P4 client -d workspace_name )
  • deleting label has no confirmation step ( P4 label -d label_name)

Which I found dangerous.

Thanks,

Thomas

+2  A: 

I'm not sure of the real danger - if Perforce will wipe out something that you can't get back, then that is generally why you have the -f flag. The one truly dangerous command - p4 obliterate - does require an explicit -y flag before it will do anything.

If you are concerned about modifications of the server meta data (client specs, labels, permissions tables, jobs etc), then I strongly recommend you set up a "Specs" depot. This creates a special depot in Perforce that version controls any changes users make to thing slike labels specs, branch specs, client specs etc. Can be really useful, and is the first thing I do on any new Perforce installation.

It's all in the docs. Try this KB entry for starters.

Greg Whitfield