0

I would like to prevent the files promoted to an Accurev stream which have spaces in the file name.

e.g.

My image.png 

If anybody tries to keep / promote the above file, I would like to prevent that.

Paul Roub
  • 36,322
  • 27
  • 84
  • 93

1 Answers1

1

You would need to add this logic into the server_preop_trig. You will add it to both the keep and promote sections of the trigger.

jstanley
  • 2,087
  • 15
  • 22
  • Hi jstanley , Thanks for your help. I am new to Accurev . Could you please elaborate a little more. – Srinivasan Duraisamy Feb 26 '15 at 12:33
  • The trigger script is found on your server under "accurev install dir/examples". The trigger script is called server_preop_trig.pl. Inside this script will give you details how to enable this trigger. What you will need to do is add logic to the keep/promote sections to fail if a file whose name has a space. – jstanley Feb 26 '15 at 16:12
  • You probably want to dig into the AccuRev Administrator's Guide on triggers to fully understand what they do and how they function. This will not help with the trigger script code but it is implemented in Perl and fairly simple in how they are constructed. – Mike Abusheery Mar 02 '15 at 14:11