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

Re: [TSVN] FAQ admin not working

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-09-20 18:14:15 CEST

Nicklas Norling wrote:

>>> Agreed. But is it also true that we cannot hook the explorer rename even
>>> if we wanted to?
>>
>> Yes, that't not possible.
>>
>>
> As I understand it we (TSVN) now get file system notification events
> here so it would be possible to detect
> the rename and pop up a dialog like:
> "You just renamed a file that is versioned, do you also wish it to be
> renamed in the version handling system?"
> y/N
>
> Maybe not so intrusive, but still helpful?

How should we differ between normal explorer renames, renames which
other programs do and real svn renames? An svn rename still renames the
real file, but also changes the entries file in the .svn folder.
Also, if you rename a file, we can only detect that it already has been
renamed - we don't get notifications *before* the rename happens.
So it's not possible to do an 'svn ren' after you already renamed a
file, because then the original file isn't there anymore, and the target
file already exists (so Subversion will throw an error).
Workaround: after every rename, rename the file back, do an 'svn ren'
(and set a filter to the notification events so we don't catch these
renames anymore). Yuck!

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 20 20:26:33 2005

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.