Re: [git-users] Track changing imports when using git mv on Python project
I'd definitely suggest pycharm (http://www.jetbrains.com/pycharm/) if you're looking for a python IDE. It also refactors Javascript quite well. On Sat, Nov 17, 2012 at 6:11 AM, Iñigo Medina imed...@grosshat.com wrote: On Fri, 16 Nov 2012, Mario wrote: @ Iñigo: I meant something like the following: git mv folder1/filename1 filename2 and in the same moment have changes in the code like: import folder1.filename1 -- import filename2 from folder1 import filename1 -- import filename2 import filename1 -- import filename2 Ok, I see. It depends a lot on your way of coding, ie. IDE, Vim, shell, etc. @ Peter: I thought of a combination of IDE and git, but now will search for an IDE which is able to solve my problem. Do you know any by accident? Currently I am using PyDev in eclipse but have no idea how to make it track path and name changes for the imports. I do such things on Vim this way: http://stackoverflow.com/**questions/5686206/search-** replace-using-quickfix-list-**in-vimhttp://stackoverflow.com/questions/5686206/search-replace-using-quickfix-list-in-vim iñ -- -- --
Re: [git-users] Track changing imports when using git mv on Python project
On Fri, 16 Nov 2012, Mario wrote: @ Iñigo: I meant something like the following: git mv folder1/filename1 filename2 and in the same moment have changes in the code like: import folder1.filename1 -- import filename2 from folder1 import filename1 -- import filename2 import filename1 -- import filename2 Ok, I see. It depends a lot on your way of coding, ie. IDE, Vim, shell, etc. @ Peter: I thought of a combination of IDE and git, but now will search for an IDE which is able to solve my problem. Do you know any by accident? Currently I am using PyDev in eclipse but have no idea how to make it track path and name changes for the imports. I do such things on Vim this way: http://stackoverflow.com/questions/5686206/search-replace-using-quickfix-list-in-vim iñ -- --
Re: [git-users] Track changing imports when using git mv on Python project
I'm not sure I understand this right. Do you mean change the references to imports on python files or git references? iñ On Fri, 16 Nov 2012, Mario wrote: I am currently totally rearranging a python project, which mainly means changing file names and moving folders and files. Therefore I user git mv and changes go very fast. Unfortunately I have to fix all the hanged imports, which is really a lot when having more than 100 files. Is there any possibility to make it easier for me? -- --
Re: [git-users] Track changing imports when using git mv on Python project
On Fri, Nov 16, 2012 at 3:13 PM, Mario supermari...@googlemail.com wrote: I am currently totally rearranging a python project, which mainly means changing file names and moving folders and files. Therefore I user git mv and changes go very fast. Unfortunately I have to fix all the hanged imports, which is really a lot when having more than 100 files. Is there any possibility to make it easier for me? Refactoring is the job of your IDE, not your version control system. -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced. --