rel-escrow change-submit //stream/foo_*_rel_*/... "%//depot/path/to/EscrowLock.sh% %user% %change%"
and it is great at making sure that users wanting to check in to our release branches have included the appropriate magic in their change description.
However, when I attempt to branch and populate a new release stream like so:
p4 populate -S //stream/foo_22_rel_b8 -r
I get booted because my escrow lock wants me to provide a bunch of magic in the description. I can provide "-d 'blah blah blah'" but one of our escrow rules is that particular strings exist on their own line. On linux I can kinda hack this with my shell, but on Windows there's no good way to add line breaks within a command line.
Is there a way in a change-submit trigger to detect that the originating command was a populate so I can easy-out? Is there a trick for getting -d to read change descriptions from a file?