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

Re: Feature Request: Automatically detect moved or renamed files and folders

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-18 22:05:51 CEST

Thomas Eyde wrote:
> Deleted files are in the commit dialog marked as "missing", and when
> we check those files they will be deleted.

That's how it works.

> Since it's possible to sniff the file-system for changes, I'd like
> TortoiseSVN to automatically detect when a source-controlled file or
> folder is moved or renamed.

While it is possible to 'sniff' such renames, it would be a very bad
idea to do so.

> Tortoise already know if a file is source controlled or not, the
> Windows file system sends events when the file is changed, so it would
> be helpful if Tortoise also suggested to move or rename the file in
> the repository when that's what happened in the file system.

That would basically mean to pop up a dialog box asking the user.
Now, there are many editors/IDE's out there which not save a file by
simply saving it, but they first write the contents to a temp file, then
delete the original one, then rename the temp file to the 'real'
filename. Do you really want a dialog box popping up every time you save
a file?

> That would make it so more convenient to work in IDEs like Visual
> Studio, where it's natural to move or rename files and folders in the
> IDE, and not with Tortoise's menu commands in the Explorer shell.
> As it is now, any change to a file or folder not done with the
> Tortoise commands will be deleted, then added and all history is lost.

Other reasons we won't do that:
* to 'sniff' (as you call it) renames, we'd have to actually implement a
windows service. And when you do that, you _must not_ pop up any
dialogs, because that would mean to open a security hole.
* renames also have to be done outside version control - I have to do
that more than I rename files with the TSVN command (e.g. replacing the
contents of a file.
* other apps also rename files, it's not just the user doing it on
purpose. Some apps rename files very frequently (e.g. virus scanners
renaming temp files, ...)

If you want to have your IDE rename the files with the proper Subversion
command, then I suggest you use e.g. AnkhSVN or some other IDE plugin.


   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 Sun Jun 18 22:06:06 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.