Stefan Küng wrote:
> Nicklas Norling wrote:
>>>> Agreed. But is it also true that we cannot hook the explorer rename
>>>> 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?"
>> 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!
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
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?
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Tue Sep 20 20:25:15 2005