Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9547 (closed defect: fixed)

Opened 1 year ago

Last modified 9 months ago

bzr deploy strategy should default to 'checkout --lightweight', not 'branch'

Reported by: ceefour Assigned to: minam
Priority: normal Milestone: 2.x
Component: Capistrano Version: edge
Severity: normal Keywords:
Cc: jamis, michiels

Description

Branching takes A LOT of time in Bazaar. User should be provided a way to use lightweight checkout (a.ka bzr checkout --lightweight) And this should be default anyway.

Attachments

bzr.rb-use-checkout-lightweight-for-checking-out.patch (0.6 kB) - added by michiels on 10/19/07 13:18:52.
Patch to use checkout --lightweight in stead of branch

Change History

09/30/07 15:00:40 changed by minam

I'm not a bzr guru, so I'm the wrong person to implement this. Anyone desiring this feature is encouraged to submit a patch. I'll leave this ticket open so that patches may be attached to it.

10/19/07 12:51:00 changed by ceefour

  • cc changed from jamis to jamis, michiels.

It's actually pretty "trivial", simply replacing the command line "bzr branch" with "bzr checkout --lightweight", everything else stays the same. But I'm not sure where to start looking.

10/19/07 13:06:01 changed by michiels

Just out of curiosity, what is the advantage (and possible disadvantage) of using checkout --lightweight over branch?

10/19/07 13:10:14 changed by ceefour

branching is more heavy of course, since it practically downloads the entire repository.

A bazaar lightweight checkout is the directly similar to a subversion checkout.

The disadvantage of lightweight checkout is that you won't be able to perform offline operations, and you need to be able to reach the remote repository in order to commit.

However, in the context of Capistrano deploy, I'd be puzzled if anyone has a need for offline distributed SCM operations inside a Capistrano-deployed bazaar tree.

10/19/07 13:16:02 changed by michiels

Thanks for your clear response.

I agree with your statements. I also don't it's likely someone would want to do SCM operations on a production branch. Capistrano can do rollbacks and reverts itself.

I'll attach a patch which uses the checkout --lightweight command. Hope it's gets accepted by the Cap developers :)

10/19/07 13:18:52 changed by michiels

  • attachment bzr.rb-use-checkout-lightweight-for-checking-out.patch added.

Patch to use checkout --lightweight in stead of branch

01/30/08 05:49:19 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

(In [8753]) Use checkout --lightweight for bzr checkout, instead of branch (closes #9547)