[p4] Tracking changelist renumbering

Brandon DuRette brandond at alum.mit.edu
Fri Mar 9 08:31:07 PST 2007


Hello all,

I tried send this email to the list a few days ago, so I apologize if this
turns out to be a dup.  I was just in the process of subscribing to the
list, so I think it possibly got rejected, as possible spam.  In any case,
here's my question:

In a trigger I would like to be able to detect when Perforce has had to
renumber a changelist.  For example, if the changelist in the user's
workspace was @106, but after it was submitted it has become @109, is there
a way for a trigger to get both numbers?  I can use %change% to get the
@109, but I don't see any way to get to the old number.  Is there way?  A
workaround?

The motivation is that I have some tools that integrate with Perforce to get
information about the changelist before submission.  I would like to update
this information to refer to the correct changelist number after submission.



Cheers,
Brandon


More information about the perforce-user mailing list