Comment 2 for bug 667492

Revision history for this message
Tony Byrne (tony-badwolf) wrote :

I like this command. It doesn't cope with spaces in project name so I include a patch for that.
I have had this before but there is a fairly simple way to process the changes using meld.

quickly create ubuntu-application AppTime
quickly create ubuntu-application AppTimer
meld apptimer apptime
Change the filenames (in nautilus) for the green entries (mismatched filenames)
restart meld
Change the contents line by line for the red entries (mismatched contents)

There is a problem with the automatic renaming, if the old project_name (camel_case_name etc) matches a python keyword or a dictionary key it could screw up the code logic without warning. Perhaps the rename logic should test for a relevant project_name (camel_case_name etc) in the template.