[p4] Getting the next valid changelist number
Jeff Grills
jgrills at drivensnow.org
Wed Oct 18 17:57:43 PDT 2006
In that case, as many have pointed out, you can't guarantee that you will
get the changelist number you ask for. You should create a new changelist
at the beginning of your script by providing a blank template to "p4 change
-i", and reading the change number back that you are assigned.
j
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Hirani, Mahendra
Sent: Wednesday, October 18, 2006 11:24 AM
To: perforce-user at perforce.com
Subject: Re: [p4] Getting the next valid changelist number
Thank you for your responses,
p4 counter change then adding one seems to be the best option for
me.
The reason I need the next changelist number is to ensure that for the
automatic merge script I plan to implement. For a given client view that
maybe has pending files in the default changelist of that client, I would
create a new empty changelist to which my merge script would populate,
thereby not contaminating the merge process with files opened by other users
OR even previously crashed merge scripts using the default changelist.
Basically, a safeguard I would like to build into my merge script.
Thanks again,
Mahendra.
Mahendra Hirani
Global Markets Trading Technology
Bank of America
More information about the perforce-user
mailing list