[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TortoiseMerge executed from commandline won't auto save to /Merged filename

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-09-10 18:03:05 CEST

Bas Schouten wrote:
> I'v worked around the problem with a batchfile, that creates an empty
> resultfile if its not already there, so its not an immediate problem
> anymore.
> Stefan, the problem still exists in the lastest nightly x64 build
> (
> I can reproduce it the following way.
> Create three text files in c:\temp
> v1.txt
> v2.txt
> v3.txt
> Each slightly different from the others
> the execute Merge from the command line with the following command:
> "C:\Program Files (x86)\TortoiseSVN\bin\TortoiseMerge.exe"
> /base:"c:\temp\v1.txt" /theirs:"c:\temp\v2.txt" /mine:"c:\temp\v3.txt"
> /merged:"c:\temp\merged.txt"
> It starts Merge, and shows the Merged.txt as a result file in the lower
> pane, with a (not found) behind it.
> Now click on save, or close the application ... it should (im my
> opinion) save the result file as c:\temp\merged.txt but
> it opens a SaveAs dialog asking me for a filename (which i already
> provided on the commandline).

Just tried again with the latest nightly build. It works as expected.
If you have modified the bottom pane, it will ask you if you want to
save your changes before exiting, and clicking "yes" will save the file
to the /merge:"" path even if that file doesn't exist.
If you click on save, it will save the file to the /merged:"" path
without asking.

And if you check the code, it will also automatically create any
intermediate folders which don't exist yet so it can save the file to
the requested path.

The only reason it would ask for a path to save the file to is if it
can't save the file to the path you've specified with the /merged:""
param (i.e., if the file exists but is readonly).


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Sep 10 17:59:50 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.