Re: [git-users] Track changing imports when using git mv on Python project

2012-11-18 Thread [MACSkeptic] Mozair Alves do Carmo Júnior
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  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-vim
>
> iñ
>
>
>> --
>>
>>
>>
>>
> --
>
>
>

-- 




Re: [git-users] Track changing imports when using git mv on Python project

2012-11-17 Thread Iñigo Medina


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

2012-11-16 Thread Mario
@ 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

@ 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.

-- 




Re: [git-users] Track changing imports when using git mv on Python project

2012-11-16 Thread PJ Weisberg
On Fri, Nov 16, 2012 at 3:13 PM, 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?

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.

-- 




Re: [git-users] Track changing imports when using git mv on Python project

2012-11-16 Thread Iñigo Medina


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?

--





--




[git-users] Track changing imports when using git mv on Python project

2012-11-16 Thread Mario
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?

--