[p4] Revision confusion

Ivey, William william_ivey at bmc.com
Thu Aug 30 08:38:28 PDT 2007


I forgot to mention that both revision #1 and 2 of this
particular file are identical in content so the empty
diff makes sense, it's the fact that everything is
consistently referencing rev 1 that's interesting.

-Wm

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Ivey, William

I was watching the modtime thread and tried an experiment,

the results were interesting:

 

> p4 have BuildIt.dat

//depot/main/BuildIt.dat#2 - /opt/simcity/auto/daily/main/BuildIt.dat

> p4 edit BuildIt.dat

//depot/main/BuildIt.dat#2 - opened for edit

> p4 sync BuildIt.dat#1

//depot/main/BuildIt.dat#2 - is opened at a later revision - not changed

> p4 have BuildIt.dat

//depot/main/BuildIt.dat#1 - /opt/simcity/auto/daily/main/BuildIt.dat

> p4 revert BuildIt.dat

//depot/main/BuildIt.dat#1 - was edit, reverted

> p4 edit BuildIt.dat

//depot/main/BuildIt.dat#1 - opened for edit

... //depot/main/BuildIt.dat - must sync/resolve #2 before submitting

> p4 diff BuildIt.dat

==== //depot/main/BuildIt.dat#1 -
/opt/simcity/auto/daily/main/BuildIt.dat ====

> p4 revert BuildIt.dat

//depot/main/BuildIt.dat#1 - was edit, reverted

 

Obviously sync doesn't update the file contents, but it does change 

the revision. -Wm

 

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user




More information about the perforce-user mailing list