[p4] Getting the next valid changelist number
Jeff Grills
jgrills at junctionpoint.com
Tue Oct 17 12:20:42 PDT 2006
There's no way that I can think of. The best I think you could do is "p4
counter change", but that will give you the current changelist and you'd
have to add 1 to that number. I have to ask, though, why would you want to
know such a thing? Perforce server multiple users at the same time, so
there's guarantee that you're going to get that changelist number - someone
else could create that changelist between the time you poll the counter and
the time you try to create it yourself.
j
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of
> Hirani, Mahendra
> Sent: Tuesday, October 17, 2006 9:07 AM
> To: perforce-user at perforce.com
> Subject: [p4] Getting the next valid changelist number
>
> Hi
>
> Is there a simple perforce command to get the next valid
> changelist number, rather than writing a script to get the
> last changelist number and increment it?
>
> Thanks,
>
> Mahendra.
>
> Mahendra Hirani
> Global Markets Trading Technology
> Bank of America
More information about the perforce-user
mailing list