[p4] What is the best strategy to prevent P4 users from
Toby Allen
tallen at qumas.com
Wed Sep 5 02:15:10 PDT 2007
Hi Alok,
I think the simplest solution is training. You need to make your
developers able to correctly use the resolve function to resolve their
version with the perforce version. If they are not doing this you are
missing out on one of the true strengths of Perforce.
Toby Allen
Development Team Lead
QUMAS
----------------------------------------------------------------
Hi,
I'm finding that some developers do not sync their workspaces with the
head revision before making changes to the source code and overwrite the
latest revision with an older revision of the file. What is the best
strategy to prevent P4 users from overwriting the latest file revision
in P4 Depot with an older revision?
The immediate solution that came to my mind works as follows:
1. When a P4 user syncs files from the depot, create a list
containing all the files that were synced along with their revision#.
2. At the time of submission, compare the revision# of the depot
file with the revision# of the workspace space. If the delta is > 0,
warn the user that the file being submitted has undergone N revisions
since being synced (where N is the delta). This will inform the user of
the danger of submitting an older revision.
I reckon I can write a trigger to implement my solution. I would like to
know if somebody has a better way of solving this problem.
Thanks,
Alok
Beceem Communications
********************************************************
This email message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure, printing, copying or distribution is prohibited. If you are not, or believe you are not, the intended recipient, please contact our systems administrator immediately at postmaster at qumas.com and destroy all copies of the original message and any attachments.
Any views or opinions presented are solely those of the author and do not necessarily represent those of QUMAS.
QUMAS has a virus detection policy but cannot accept responsibility for any loss or damage arising from the opening or use of this email and/or attachments.
********************************************************
More information about the perforce-user
mailing list