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

About the discussion of 'Renaming in explorer should work as 'svn rename''

From: zero5870 <zero5870_at_gmail.com>
Date: Thu, 17 Jan 2008 18:36:23 +0900

Dear TortoiseSVN Team

 

  Abou this discussion of bellow, I have two ideas about it.

 

Renaming in explorer should work as 'svn rename'

When a version controlled file is renamed in Explorer, why can't you offer
to rename in Subversion as well?

Firstly, we cannot access the explorer rename command as it is not part of
the TortoiseSVN shell extension.

Secondly, even if we could find a way around that limitation, it would not
be desirable. There are occasions when you want to rename only in explorer.
Here are 2 examples:

* You have made some changes to a file. You need to revert to a known
working version so you can get a bugfix out, but you want to keep a copy of
the changed file. The easiest way is simply to rename the changed file, then
update your working copy, allowing Subversion to bring back the missing file
for you.
* You want to unversion a file, ie. delete it from Subversion, but
keep the file. The easiest way is to follow these steps:

1. Rename the file, eg. MyFile.cpp to MyFile.bak.cpp.
2. Commit the parent folder, making sure the missing file (MyFile.cpp)
is checked for deletion.
3. Rename the file again (MyFile.bak.cpp to MyFile.cpp).

TortoiseSVN 1.5.0 will have the ability to 'repair' a move/rename which was
done without using the Subversion commands. Repairing works by selecting two
files where one is unversioned and the other missing, then choose "repair
move" from the context menu.

 

1) Is there any way to make this purpose possible ?

 

--> For the 'folder' ...... Such as :

      When doing 'SVN Commit', to compare the 'real folder name' and the
'subvision's URL property', if they are different then do 'svn rename'.

 

--> For the 'file' ...... I have no idea ...... (T_T)/~~~

 

2) If it is possible, is there any way to make this function optionally ?

 

--> Such as :

      Make this function as an 'SVN Property' or an 'setting option'.

 

** Can't rename files or folders at windows explorer is the only one
discommodity I think.

  Because some of software develop tool such as MS Visual Studio .Net,

the file's rename should use itself(MS Visual Studio) to do.

 

Best Regards.

 

zero5870

image003.jpg
Received on 2008-01-17 10:37:25 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.