[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: Nicklas Norling <exinor_at_exinor.net>
Date: 2005-09-20 19:15:29 CEST

Stefan Küng wrote:

> 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

Why do reality always keep knocking down those good ideas? ;) Let's see
if I can kepe it alive for another round.

If other programs rename it we wan't the notification I guess, but if
svn renames it... Hmm, if there's no way to
distinguish between the two (such as asking the svn API if it was svn
mv'ed or not) then I guess the idea is shot
down.

About the second use-case, if I rename a file and then is answering,
Yes, I wan't to also rename it in the repo,
it's decided I did make a bo-bo and would expect the file to be renamed
back and then svn mv'ed to the new name.
If I really did do the right thing I would answer No and nothing would
happen. I'd expect No being the default...

Does it makes any sence?
/Nicke

---------------------------------------------------------------------
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:25:15 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.