[p4] Travelling back and forth without destroying the depot
Greg.Whitfield at lightworkdesign.com
Tue Jan 5 06:03:21 PST 2010
You don't need the rm command, and you don't need the -f option on the
sync commands. Just p4 sync to the date (as you have).
The sync command takes care of removing files that were not in the depot
at the point of the sync.
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Paulo De
Oliveira Cantante De Matos
Sent: 05 January 2010 11:45
To: perforce-user at perforce.com
Subject: [p4] Travelling back and forth without destroying the depot
I have a depot with several directories. I want one of the directories
~/depot/foo/bar as it was at a given time (lets say I have a specific
date in mind). Then I want to go back to the most up-to-date version. I
thought I could do something like:
rm -Rf ~/depot/foo/bar
p4 sync -f //depot/foo/bar/...@<date>
... <test something>
p4 sync -f //depot/foo/bar/...
Any tips on the best way to work this out?
Member of the CSR plc group of companies. CSR plc registered in England
and Wales, registered number 4187346, registered office Churchill House,
Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
perforce-user mailing list - perforce-user at perforce.com
More information about the perforce-user