[p4] Deleting original depot without affecting branch

Oren Shemesh (oshemesh) oshemesh at cisco.com
Thu Feb 28 00:21:55 PST 2008

Obliterate automatically does the work '-z' would do, if needed.
You can safely use obliterate, just as you understood in the past.

The reason they have the '-z' option is because if project1 was branched
to 10 other projects, and you obliterate it, the files would be copied
10 times, and this may cause disk to fill too much and fail the
obliterate - probably leaving things in a mess (I am speculating here).
By running obliterate -z first, you tell it to copy all the files and
use the disk space it would use, without obliterating the original
files, so you can see the effect on disk space. I assume that if the
disk gets too crowded, obliterate -z will fail without leaving the
system in any mess, and this would be your warning that you cannot use
obliterate until you free some space or add disk space.

Regards, Oren.

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Jeff Desharnais
Sent: Wednesday, February 27, 2008 10:11 PM
To: Jeff Desharnais; perforce-user at perforce.com
Subject: Re: [p4] Deleting original depot without affecting branch

Forgot to mention:

Server version: P4D/NTX86/2005.1.PATCH/99707 (2006/05/16)

Running on a Windows Server 2003 machine.

-----Original Message-----
From: Jeff Desharnais
Sent: Wednesday, February 27, 2008 2:44 PM
To: perforce-user at perforce.com
Subject: Deleting original depot without affecting branch


We have a depot for project1 which was branched into a new depot to
create project 2.

Work has been done on project2. Project1 is no longer needed.

I need to obliterate project1 to free up space on the server, and am
concerned with the process of removing project1 without any negative
effects on project2.

My understanding in the past was that using obliterate as normal would
not break any links in project2 and project2 would be unharmed. I have a
feeling this is incorrect and that I will need to use the obliterate -z

If I understand this right, using obliterate -z on project1 will not
actually remove any data but will just create true copies of all the
lazy copies. So project1 and project2 will be unchanged except for the
fact that project2 is now its own entity with no links to project1. Is
this correct? From this point I would then just normally obliterate

If anyone could clear this up for me I would appreciate it.


perforce-user mailing list  -  perforce-user at perforce.com

More information about the perforce-user mailing list