Skip to content

Option for skipping checkout of existing repositories#96

Open
leorochael wants to merge 6 commits intoanybox:masterfrom
leorochael:leorochael-skip-checkout
Open

Option for skipping checkout of existing repositories#96
leorochael wants to merge 6 commits intoanybox:masterfrom
leorochael:leorochael-skip-checkout

Conversation

@leorochael
Copy link
Contributor

@leorochael leorochael commented Feb 10, 2017

Checking out lots of addon repositories (or even the huge odoo repo itself) can take a long time, and sometimes we just want to re-run buildout for some other purpose. Examples include:

  • rebuilding odoo.cfg
  • adding another python package in eggs =
  • temporarily working on an addon in a branch that is different than the one specified in buildout.cfg but wanting to re-run buildout for one of the above reasons.

Some of these can be achieved by using the buildout:offline setting (i.e. by running bin/buildout -o) but others can't. And even the offline run can be faster by skipping the checkouts.

This PR adds an option for skipping the checkout of a repo if the target already exists.

It's mostly to be used from the buildout command line, like:

 bin/buildout odoo:skip-checkout=true

@petrus-v
Copy link

Thanks for this PR, reading your description I wonder why you are not using buildout offline option?

bin/buildout -c buildout.cfg -o

@leorochael
Copy link
Contributor Author

Thanks for this PR, reading your description I wonder why you are not using buildout offline option?

I am, for some of the cases. But there are some other cases where I'd like to skip checkout even in non-offline mode. I've clarified some more use cases in the PR description.

@coveralls
Copy link

coveralls commented Feb 13, 2017

Coverage Status

Coverage increased (+0.07%) to 86.516% when pulling 78f8cfb on leorochael:leorochael-skip-checkout into f14b801 on anybox:master.

Allow the main server part to be skipped  as well.
@coveralls
Copy link

coveralls commented Feb 14, 2017

Coverage Status

Coverage increased (+0.07%) to 86.516% when pulling 60c1b6e on leorochael:leorochael-skip-checkout into f14b801 on anybox:master.

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

Successfully merging this pull request may close these issues.

3 participants