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

Re: Apply patch from clipboard - how?

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2006-12-06 23:55:12 CET

Simon Large wrote:
> Stefan Küng wrote:
>> Simon Large wrote:
>>> Hi folks,
>>>
>>> I was about to document the new apply patch from clipboard feature,
>>> but it doesn't seem to come up on my PC. I am running nightly r7910
>>> so it should be there. Here's what I do:
>>>
>>> In a modified WC, TSVN->CreatePatch, select modified files, OK.
>>> In SaveAs dialog click the 'Save to Clipboard' button.
>>> In the same WC, TSVN->ApplyPatch.
>>> In 'Select diff file' dialog look for some reference to the
>>> clipboard, but there isn't any.
>>
>> It's only available if you start TortoiseMerge directly.
>
> OK, I see it there now.
>
> But why not add a button to the 'open patchfile' dialog to make it more
> similar to the 'save patchfile' dialog, where there is a button to save
> to clipboard? That would mean you can right click in the folder you are
> working on instead of having to use the browse buttons in the TMerge
> startup dialog.

I see you have now changed the behaviour so that if there is a patch on
the clipboard it is selected automatically. That works fine except for
one problem; Once there is a patch on the clipboard, if I want to apply
a patch from a file, I have to clear the clipboard first by doing a
dummy copy or cut from somewhere else in Windows. That works but is not
intuitive, and could lead to a spurious bug reports "yesterday I
couldn't apply patch files but today I can".

Suggestions:
1. Add a button to the 'open patchfile' dialog as described above.
2. Use [Shift]ApplyPatch to apply patches from the clipboard.
3. Copy patch from clipboard to the temp folder and apply from there,
clearing the clipboard after copying. I think TortoiseProc clears svn
files older than 24 hours out of temp automatically.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Dec 6 23:55:47 2006

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.