Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: rename a stack #31

Closed
schwern opened this issue Nov 9, 2012 · 4 comments
Closed

Wishlist: rename a stack #31

schwern opened this issue Nov 9, 2012 · 4 comments

Comments

@schwern
Copy link
Collaborator

schwern commented Nov 9, 2012

I've built my repo in init and only now have realized that 'dev' would be a better name. As far as I can tell, the way to rename a stack is to copy it, transfer over any properties, and then delete the old one. Copying a stack is very slow, property transfer must be done carefully, and delete is broken.

A command to rename a stack would be handy. Given that pinto's commands are fairly verbose, "rename" would be what I'd suggest.

@thaljef
Copy link
Owner

thaljef commented Nov 9, 2012

On Nov 9, 2012, at 8:15 AM, Michael G. Schwern wrote:

I've built my repo in init and only now have realized that 'dev' would be a better name. As far as I can tell, the way to rename a stack is to copy it, transfer over any properties, and then delete the old one. Copying a stack is very slow, property transfer must be done carefully, and delete is broken.

A command to rename a stack would be handy. Given that pinto's commands are fairly verbose, "rename" would be what I'd suggest.

Good idea. That would be a cinch. Just update the name in the DB, and then change the symlink.

@thaljef
Copy link
Owner

thaljef commented Nov 9, 2012

By the way, most commands have short aliases...

list == ls
copy == cp
delete == del, rm

That probably needs to be added to the documentation.

@thaljef
Copy link
Owner

thaljef commented Nov 9, 2012

The copy operation can be made much, much faster. Right now it goes row by row, and each insert causes an additional row in the history table. If we just bypass DBIx::Class and write some raw SQL I'm sure it will be crazy fast. Too bad I despise SQL :-o

@thaljef
Copy link
Owner

thaljef commented Nov 12, 2012

Pinto-0.063 now supports a "Rename" action. You'll need a newer App-Pinto to get the corresponding command.

@thaljef thaljef closed this as completed Nov 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants