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

Re: What is Tortoise Doing?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 10 Jun 2010 17:45:55 +0200

On 10.06.2010 17:11, Hans-Emil Skogh wrote:
> >>>> When I check the log, right-click on an older revision and select
> >>>> 'Compare with working copy', TortoiseMerge gets launched (despite the
> >>>> fact that I've set an external diff/merge viewer).
> >>> It creates a unified diff between the revision and the working copy.
> >>> That's basically a patch file.
> >>> That patch file is then passed to TMerge to apply the patch in reverse
> >>> to the wc.
> >>> Since TMerge is the only UI app (that I know of) that can apply
> patches,
> >>> it is used exclusively for this.
> >> Wouldn't it be possible to apply the merge to a temporary file and then
> >> pass that temporary file(s) to the external diff/merge viewer?
> > svn has no api to apply a merge to a temp file - only versioned files
> > can be the target of a merge.
> I guess that this means that the patch is interactively applied?
> Otherwise we could apply the patch to the file in the wc and then pass
> that file to the external program. Or am I missing something crucial here?

Yes, the patch is applied interactively. Because the patch can spread
over several files, not just one.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2619278
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-06-10 17:46:06 CEST

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.