Move pre-commit on client side

We use perforce as a control source for Visual Studio. Work with P4 and P4V. Can I add a pre-hook on the client side? for example, to provide the word "debugger"; does not exist in * .js files. May find something on Google. Thank.

+5
source share
2 answers

Perforce triggers can be used to enforce this policy, but they run on the server, not on the client side. Therefore, most of the sites that I know of will apply a rule similar to the one you are describing with the help of a content change trigger on the server.

http://www.perforce.com/perforce/doc.current/manuals/cmdref/triggers.html

, . , ?

, , , .

+4

All Articles