Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Filename Rename
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AGPX
Senior Member

28 Posts

Posted - Oct 08 2007 :  02:09:57 AM  Show Profile  Reply with Quote
It should be a really good feature , that a specific rename for include that renames file and renames all #includes related with the file.This feature can be integrated to solution explorer.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 08 2007 :  10:57:59 AM  Show Profile  Reply with Quote
one more vote
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 08 2007 :  3:18:50 PM  Show Profile  Reply with Quote
We have no current plans to try and do this. Renaming files opens up a whole pile of possible problems with source control systems...

zen is the art of being at one with the two'ness
Go to Top of Page

AGPX
Senior Member

28 Posts

Posted - Oct 08 2007 :  3:49:05 PM  Show Profile  Reply with Quote
I think VAX should not be responsible for keeping consistency of Source Control and other environment tools like that.And if it should , there should be a way to do that , at least something like refactoring references and leaving file rename to user.I think this should help many developers because renaming a file is mostly done in many projects.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 08 2007 :  4:03:03 PM  Show Profile  Reply with Quote
The idea comes up every now and then, and I agree, it is a tempting idea:

case=1463

However, unlike renaming a symbol where you can be fairly sure the code will still compile, renaming the file can cause bigger problems. Loosing the file history in source control being an obvious concern.

zen is the art of being at one with the two'ness
Go to Top of Page

sl@sh
Tomato Guru

Switzerland
204 Posts

Posted - Oct 15 2007 :  05:47:45 AM  Show Profile  Reply with Quote
While many SCS's don't even support file renaming (this means you *will* lose file history, no matter what you do!), some do. However, those that do probably require some specific method to maintain the link to the old history, e. g. Subversion has a special rename command - simply renaming the file using the file system will make subversion forget about it's history still!

One solution would be for VAX to call the proper SCS command for renaming, but obviously VAX cannot reasonable deal with all existing SCSs out there.

Here is a better solution: Have VAX invoke a MS DOS batch file (for those who still know what MS DOS is....). Per default, it's content could be a simple command to rename a file:
move %1 %2

Users could modify this file to invoke their repository client, e. g. for subversion they could call:
svn move %1 %2


What do you think?
Go to Top of Page

AGPX
Senior Member

28 Posts

Posted - Oct 15 2007 :  09:49:13 AM  Show Profile  Reply with Quote
quote:
Originally posted by sl@sh

While many SCS's don't even support file renaming (this means you *will* lose file history, no matter what you do!), some do. However, those that do probably require some specific method to maintain the link to the old history, e. g. Subversion has a special rename command - simply renaming the file using the file system will make subversion forget about it's history still!

One solution would be for VAX to call the proper SCS command for renaming, but obviously VAX cannot reasonable deal with all existing SCSs out there.

Here is a better solution: Have VAX invoke a MS DOS batch file (for those who still know what MS DOS is....). Per default, it's content could be a simple command to rename a file:
move %1 %2

Users could modify this file to invoke their repository client, e. g. for subversion they could call:
svn move %1 %2


What do you think?



Much better but, instead of batch file it could be script string saved in registry,called by VAX in necessary conditions.Also it should be optional.Even this solution provides SCS synchronization , Some continuous integration systems needs commit process done with all other changes

Edited by - AGPX on Oct 15 2007 09:50:46 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 15 2007 :  4:10:04 PM  Show Profile  Reply with Quote
sl@sh: excellent idea! seriously.

...and I agree with AGPX: a registry setting, or (even better) a string @ refactoring "tab" in VAX's options dialog is a more polished solution.

When I rename a class, usually rename it's file also, because I often use a very similar name.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 17 2007 :  08:42:28 AM  Show Profile  Reply with Quote
I have put a note about this idea onto the case. It is a very interesting idea, assuming it is setup correctly by the end user.

Speaking as support my main concern at this point is the user who has this setup wrongly, renames most of their files, and then asks Whole Tomato to fix their source control system

zen is the art of being at one with the two'ness
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 17 2007 :  5:50:26 PM  Show Profile  Reply with Quote
In the worst case we can replace this feature by a VB script:
1. Call VAX rename file
2. Call Source Control rename


But certainly it would be more comfortable in VAX.
Maybe a warning at first time rename? (for example: you have set custom Source Control command. Incorrect setup may lead to data loss. Are you sure to want to rename the file?)

Edited by - accord on Oct 17 2007 5:51:44 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 13 2012 :  2:04:28 PM  Show Profile  Reply with Quote
case=1463 is implemented in build 1916
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000