Re: [p4] p4 typemap text+x except when symbolic link

Sambwise <[email protected]>
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Sambwise'.

There isn't a way to have a typemap entry apply conditionally based on the
detected filetype (there was a longstanding enhancement request for this IIRC),
but you can specify it as a modifier to be applied on top of it:

+x //.../compile

Otherwise, your best bet would be to use a trigger -- you could do "p4
retype" in a change-commit trigger, for example, or have a change-submit
trigger reject the file and force the user to reopen it with the right type, or
try to have a change-submit trigger reopen it for the user (not sure if this
actually works; modifying files during a submit is generally prevented, so
you'd have to experiment with it a little).



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5476-p4-typemap-textx-except-when-symbolic-link
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.