7 messages in com.perforce.perforce-user[p4] Moving files about in the depot
FromSent OnAttachments
data10 Feb 2004 23:17 
Bjørn Toft Madsen12 Feb 2004 02:00 
Paul Goffin12 Feb 2004 02:19 
Bjørn Toft Madsen12 Feb 2004 02:57 
Oren Shemesh12 Feb 2004 02:57 
Stanley, Jack12 Feb 2004 09:39 
Kjell Martin12 Feb 2004 10:47 
Subject:[p4] Moving files about in the depot
From:Kjell Martin (kjel@peregrine.com)
Date:02/12/2004 10:47:37 AM
List:com.perforce.perforce-user

Other things to consider in addition to the file revision items: If a clientspec has a file synced on a hierarchy that you are moving, it will have an entry in the checkpoint that refers to the clientspec perspective (//myclientspec/myproject/file1) in addition to the depot perspective (//depot/myproject/file1). Also you will need to take a look at clientspecs to make sure that you are not breaking their views. If you're already using labels, branch specs, protection table, files on change lists, locked files - then these are examples of areas to review to prevent breakage.

I would recommend creating automated scripts to modify your checkpoint file so that you can run multiple tests to verify its accuracy.

-----Original Message----- From: Stanley, Jack [mailto:jstanley at covad.com] Sent: Thursday, February 12, 2004 9:40 AM To: Bj?rn Toft Madsen; perforce-user at perforce.com Subject: RE: [p4] Moving files about in the depot

It's a good idea to also run a p4 verify -q //... on the changed depot before you unleash it to the developers.

-----Original Message----- From: perf@perforce.com [mailto:perforce-user-admin at perforce.com] On Behalf Of Paul Goffin Sent: Thursday, February 12, 2004 2:19 AM To: Bj?rn Toft Madsen; perforce-user at perforce.com Subject: RE: [p4] Moving files about in the depot

Checkpoint surgery.

Stop your server.

Take a depot checkpoint. Using your favourite editor, replace every string containing "//depot/myproject" with "//depot/myprojects/myproject1", etc.

The move the directories on your server to match the new paths.

Then delete (or better, move to a safe area) your db.* files and recover the newly edited checkpoint.

Paul.

(Don't attempt this without taking a backup first...)

-----Original Message----- From: Bj?rn Toft Madsen [mailto:lists at sunbeam60.net] Sent: 12 February 2004 10:01 To: perforce-user at perforce.com Subject: [p4] Moving files about in the depot

Hi all,

Say I have the following depot structure: //depot/myproject1 //depot/myproject2 //depot/hisproject1 //depot/hisproject2

And I want the following structure: //depot/myprojects/myproject1 //depot/myprojects/myproject2 //depot/hisprojects/hisproject1 //depot/hisprojects/hisproject2

What is the best way to move the files around and to create folders, without deleting them and adding them to source control again? Is there a way?

Thanks a lot for any help you can provide Best regards Bj?rn Toft Madsen

.

.

******************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the postmaster at the address below. ITS-Support at aepsystems.com Unless the contrary is specifically indicated above nothing in this message is intended to constitute an electronic signature within the meaning of the Electronic Commerce Act 2000 or similar legislation enacted elsewhere in the world. This footnote also confirms that this email message has been checked for the presence of computer viruses. **********************************************************************