[p4] Revert a changelist

Jeff Grills jgrills at junctionpoint.com
Thu Jul 12 08:44:29 PDT 2007


I have something that does just about that, when provided the -r command
line option.  It won't submit the files, but rather leave them in a
changelist to review first.

http://public.perforce.com:8080/guest/jeff_grills/misc/p4unsync.pl

It doesn't remove integration records, though.  It just gets the depot
file contents back to the state before the specified changelists were
submitted.  You might be able to back those out with a integrate -f,
though, but I'm not sure.

j
 

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
Jamie.Echlin at barclayscapital.com
Sent: Thursday, July 12, 2007 7:49 AM
To: perforce-user at perforce.com
Subject: [p4] Revert a changelist

Hi,

Has anyone got a programmatic implementation of Technote 14 (how to
revert a changelist), in any language? Looking for a bit of a headstart
for one the custom tools we're doing.

Also, if the changelist contains branch/integrates, I don't see how you
can revert that without doing an obliterate. Any idea?

Cheers, jamie



More information about the perforce-user mailing list