Re: [p4] Anyone have a way to preview p4 protect updates outside of the P4V admin tool?

Sambwise <[email protected]> Tue, 3 Apr 2018 09:00:01 -0700
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Sambwise'.

^ Only took a little longer than I thought it'd take (about an hour, and
half of that was figuring out how to use argparse).   :)
  Definitely easier than something involving actual server state --
note that it never connects to the server, so if you want groups to be taken
into account you need to pass them in explicitly (e.g. from "p4 groups
USER"), but that'd be easy to add into the script.  I just
wanted to proof-of-concept that you could implement all of the logic client-side
if you had to.

Unit tests I will leave as an exercise for the reader...



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5674-anyone-have-a-way-to-preview-p4-protect-updates-outside-of-the-p4v-admin-tool
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user