Wishlist: rename a stack #31

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

Comments

Projects
None yet
2 participants
@schwern
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

This comment has been minimized.

Show comment Hide comment
@thaljef

thaljef Nov 9, 2012

Owner

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.

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

This comment has been minimized.

Show comment Hide comment
@thaljef

thaljef Nov 9, 2012

Owner

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

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

That probably needs to be added to the documentation.

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

This comment has been minimized.

Show comment Hide comment
@thaljef

thaljef Nov 9, 2012

Owner

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

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

This comment has been minimized.

Show comment Hide comment
@thaljef

thaljef Nov 12, 2012

Owner

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

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 Nov 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment