Edgewall Software
Modify

Opened 13 years ago

Last modified 10 years ago

#717 new defect

update docs for svn:checkout

Reported by: srl@… Owned by:
Priority: major Milestone: 0.6.2
Component: General Version: 0.6
Keywords: Cc:
Operating System:

Description

wiki/Documentation/commands.html

shared_path could be clarified a bit here, perhaps it could note that bitten will (1) create this dir if it doesn't exist, (2) checkout or update this dir to the specified version and finally (3) copy this dir to the build workspace.

Also note that shared_path should uniquely identify the repository - so a better suggestion might be "../trunk-myrecipe".

This is a very helpful feature.

Attachments (0)

Change History (2)

comment:1 follow-up: Changed 10 years ago by surak@…

I still don't get how it works or why.

comment:2 in reply to: ↑ 1 Changed 10 years ago by srl@…

Replying to surak@…:

I still don't get how it works or why.

Consider this snippet:

    <svn:checkout url="http://example.com/repos/surak/trunk"
                  path="${path}" revision="${revision}" />

*every single time* this runs, it will

  1. check out an entirely new copy of http://example.com/repos/surak/trunk into the build workspace

.. even if the revision number only changed slightly, or not at all.

Now consider this improved version:

    <svn:checkout url="http://example.com/repos/surak/trunk"
                  shared_path="../surak-shared"
                  path="${path}" revision="${revision}" />

This will do the following:

  1. Check if ../surak-shared exists, if so copy it into the build workspace. If not, checkout http://example.com/repos/surak/trunk to ../surak-shared
  2. Copy ../surak-shared into your build workspace, updated the the appropriate path and revision number.

Do you see the difference? You get only an svn update instead of a full svn checkout.

Also See my ticket:843 for a patch to delete and start over if the shared checkout fails for some reason.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.