PDA

View Full Version : select comparison rules for a session


aag_bc
02-Nov-2005, 01:14 AM
Hi, I have a little problem about comparison rules. I donīt know if there is a solution.
I have to compare many files with different extensions so I have created a new session and a rule that matches most of them and set the "unimportant differences" requiered. My problem is that some of the files have "common" extensions like "txt" or "h", but "txt" are not usual text files and "h" files are not C++ header files. I canīt include these extensions in the filter because if I do so the "h" and "txt" files will use this new rule instead of the standard "txt" and C++ header file rules and I donīt want that, these files are special cases.
Is there any way to force a session to use a specific rule, disable all the others,... (either by using a script or session settings). Iīve tried to use the "/rules" command line argument but it doesnīt seem work.

Chris
02-Nov-2005, 01:33 PM
Right now the /rules= command only works with the File Viewer. Rules-based content comparison in the Folder Viewer will still use rules based on file extension.

In our official 2.4 release the /rules= command will also affect the Folder Viewer.

Until that version is released, your options are to have two rules matching the file extensions and move them up or down in the Rules section of Tools|Options, or to have a separate copy of BC with different settings. You can setup a separate copy of BC with settings stored as XML files instead of in the registry by copying the BC directory and then creating an empty text file named BC2.xml in that same folder.

aag_bc
08-Nov-2005, 12:26 AM
Iīll use the XML workaround.
Thank you very much!