Command Line Option excluding files from history

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
User avatar
Yahoo Serious
Expert Member
Posts: 52
Joined: Thu Apr 12, 2007 12:31 am

Command Line Option excluding files from history

Post 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
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
User avatar
Yahoo Serious
Expert Member
Posts: 52
Joined: Thu Apr 12, 2007 12:31 am

Post 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?)
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
Post Reply