[p4] Getting revision numbers given a submitted change #

Peter Weldon peter.weldon at lollotec.com
Thu Nov 1 16:42:00 PDT 2007


On 11/1/07, Gross, Steve <SGross at sjm.com> wrote:
>
> I'd like to be able to look at the state of my perforce depot before and
> after a given change number. Is there a convenient way to do this that
> *doesn't* involve updating my workspace?


Are you just interested in the changes made by changelist X? p4 diff2 and p4
describe can both give you that info. Both P4Win (Diff 2 Folders ...) and
P4V (Diff Against ...) have gui's for this. None of these update your
workspace.

Alternatively if you want to capture the state before and after a changelist
you can create two branches using p4 integrate that can then easily be
browsed with P4Win or P4V. Specifying the -v option to p4 integrate you can
prevent it from updating your workspace.

There are most probably better ways depending on exactly what you want to
achieve and why.


More information about the perforce-user mailing list