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

Re: Feature request: Allow creating patches without working copy

From: Alexander Klenin <klenin_at_gmail.com>
Date: 2007-08-22 20:14:08 CEST

On 8/23/07, Tobias Schäfer <tobiasschaefer@gmx.de> wrote:
> On Wednesday 22 August 2007 10:27:12 Alexander Klenin wrote:
> > TortoiseProc.exe /command:createpatch /path:<old-file> /path2:<new-file>
> >
> > This syntax works well for diff command.
> > Right now path2 is not allowed and thus it is impossible to create a
> > patch without a working copy.
>
> This is not as easy to implement as it may seem. TortoiseSVN uses the diff
> functionality supplied by the subversion library. This does not allow to
> compare two arbitrary files. I guess this a "won't implement".

Hm, from the cursory look on the code, /command:diff, when given both
/path1 and /path2, resorts to calling TortoiseMerge /base:path1
/mine:path2.
Then, in the DiffData.cpp file, CDiffData::DoTwoWayDiff function calls
svn_diff_file_diff_2 from the Subversion API, which seemingly
successfully returns a diff between two untracked files.
What I want is the code which, instead of parsing the diff to display
it in the viewer, simply output it to a text file.
So, it might be "won't implement" due to lack of need or resources,
but not impossible in principle ;-)

-- 
Alexander S. Klenin
Insight Experts Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Aug 22 20:11:46 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.