GrandNagel Posted December 28, 2010 Report Share Posted December 28, 2010 I have written a filetype.conf to my client folder as well as set up the client.conf to know about coldfusion filetypes: How do I convince this tool to diff a CFC or CFM file? D? filetypes.conf ======================================================================================= # Plastic SCM custom file types. Syntax: <extension>:<type>. Type can be 'txt' or 'bin'. # Examples: # .cpp:txt # .jpg:bin .cfm:txt .CFM:txt .cfc:txt .CFC:txt .js:txt .JS:txt .htm:txt .HTM:txt client.conf... (snipped) ======================================================================================= <DiffTools> <DiffToolData> <FileType>enTextFile</FileType> <FileExtensions>*</FileExtensions> <Tools> <string>mergetool -s="@sourcefile" -sn="@sourcesymbolic" -d="@destinationfile" -dn="@destinationsymbolic" -a -t="@filetype" -i="@comparationmethod" -e="@fileencoding"</string> </Tools> </DiffToolData> <DiffToolData> <FileType>enTextFile</FileType> <FileExtensions>.cfc</FileExtensions> <Tools> <string>mergetool -s="@sourcefile" -sn="@sourcesymbolic" -d="@destinationfile" -dn="@destinationsymbolic" -a -t="@filetype" -i="@comparationmethod" -e="@fileencoding"</string> </Tools> </DiffToolData> <DiffToolData> <FileType>enTextFile</FileType> <FileExtensions>.cfm</FileExtensions> <Tools> <string>mergetool -s="@sourcefile" -sn="@sourcesymbolic" -d="@destinationfile" -dn="@destinationsymbolic" -a -t="@filetype" -i="@comparationmethod" -e="@fileencoding"</string> </Tools> </DiffToolData> <DiffToolData> <FileType>enBinaryFile</FileType> <FileExtensions>*</FileExtensions> <Tools> <string>binmergetool -s="@sourcefile" -sn="@sourcesymbolic" -d="@destinationfile" -dn="@destinationsymbolic" -a -t="@filetype" -i="@comparationmethod" -e="@fileencoding"</string> </Tools> </DiffToolData> </DiffTools> Link to comment Share on other sites More sharing options...
miller Posted December 29, 2010 Report Share Posted December 29, 2010 GNagel, OK, lets start step by step: Clean up your filetypes.conf just a remark here, it is not filetype.conf (there is an s) If you are running Plastic on windows, and from version 3.0.187.7 you do not need double entries in the file for the extensions like .XYZ and .xyz, so remove the redundant entries. No need to modify your client.conf See this link: http://www.plasticscm.net/forum193/default.aspx?g=posts&t=210 Miller Link to comment Share on other sites More sharing options...
GrandNagel Posted December 29, 2010 Author Report Share Posted December 29, 2010 Thanks for the help. I fat fingered the post. the s was correctly on the filetypeS.conf file. I removed the dup entries and it did not change the inability to deal with .cfc or .cfm files. Where exactly is the filetypes.conf supposed to live? C:\Program Files\PlasticSCM\client or somewhere else. Thanks, D. Link to comment Share on other sites More sharing options...
GrandNagel Posted December 29, 2010 Author Report Share Posted December 29, 2010 The other post was slightly helpful, but it was much easier to just burn the workspace and recreate it after the filetypes.conf was in place. Thanks again, D. Link to comment Share on other sites More sharing options...
miller Posted December 29, 2010 Report Share Posted December 29, 2010 yep, the filetypes.conf should be placed: Win VISTA / 7 C:\Users\<loggedinuser>\AppData\Local\plastic WinXP C:\Documents and Settings\<user>\Local Settings\Application Data\plastic Miller Link to comment Share on other sites More sharing options...
GrandNagel Posted January 26, 2011 Author Report Share Posted January 26, 2011 ok, so on win7 -- path to appdata : C:\Documents and Settings\Dennis\Local Settings\Application Data\plastic filetypes.conf exists containing content: # PlasticSCM custom file types. # Syntax: <extension>:<type> # Type can be 'txt' or 'bin'. # Examples: # .cpp:txt # .jpg:bin .cfm:txt .cfc:txt I deleted a workspace, and then created a new one in the same location and it did not detect and set the cfc and cfm files to binary. Why does this have to be such a pain in the @#$@#$! D? Link to comment Share on other sites More sharing options...
psantosl Posted January 26, 2011 Report Share Posted January 26, 2011 Hi, Just one remark here: the way the filetypes works is: - you add a file, then it checks the type using filetypes. If a file is *already under source control* then changing the filetypes file won't help at all, you'll have to go to the file and change its type. But of course, it will work for new added files. pablo Link to comment Share on other sites More sharing options...
GrandNagel Posted February 2, 2011 Author Report Share Posted February 2, 2011 Wondering if theres a quick way to do this from the command line? maybe, a CM command or a way to do a for loop in dos and call a command? I have not found anything in the docs yet, but one can only hope. Link to comment Share on other sites More sharing options...
psantosl Posted February 2, 2011 Report Share Posted February 2, 2011 Hi, take a look at this post http://www.plasticscm.net/forum193/default.aspx?g=posts&t=22 dir /B /S *.scs | cm crt - -type=txt Hope it helps. pablo Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.