Page 1 of 1

Command Line Option excluding files from history

Posted: Tue Aug 28, 2007 6:31 am
by Yahoo Serious
Is there a Command Line Option to exclude files/session from the history?
Whenever my Source Controls System (StarTeam) compares versions, it uses temporary file(name)s, which are pretty useless as MRU.

If there is no such option, could it be added?

PS: there is an incomplete sentence at
Help > Getting Started > Command Line Options
---
Command line options are in effect only for the duration of the current comparison. If the Options dialog is invoked, matching command line options will used to initialize the dialog; if you
---

Cheers, Yahoo

Posted: Tue Aug 28, 2007 6:20 pm
by psguru
Is there a Command Line Option to exclude files/session from the history?
Actually, yes (albeit undocumented):

--no_history
PS: there is an incomplete sentence at
Help > Getting Started > Command Line Options
Thanks, will be fixed.

Posted: Fri Aug 31, 2007 12:39 am
by Yahoo Serious
This option does not seem to do what I expect, so I'll explain a bit more:

I'm using StarTeam 2005 R2 with ExamDiff Pro 3.5 as an alternate comparison application, using (command line) options: $file1 $file2 .
This $file1 and $file2 are replaced by some temp-filename by StarTeam.

Now I added "--no_history" before and after "$file1 $file2". Either way, next time I open EDP (regularly) I get the filename last used by StarTeam (where these files will have been deleted, so their names are pretty useless).

I also tested this on my (DOS) command line, but the files from that call also persist.

Do I interpret your option wrong, use/call it the wrong way or is it a bug (in an undocumented feature ;-))...
(Maybe there is a short version of the option?)

Posted: Fri Aug 31, 2007 6:36 pm
by psguru
You are right, this option is broken -- I guess that's the beauty of having it undocumented :)

OK, the new, documented option will be:

Code: Select all

/nh          do not add files or directories to comparison history
Since you are using StarTeam, you may be interested in two more options that will allow you to use EDPro for merging:

Code: Select all

/sn1:file    use this name when you save the first file
/sn2:file    use this name when you save the second file
All of these are coming in the next release. If you are interested, send me a private message with your e-mail address, and I'll send you a pre-release build.