@@ -957,6 +957,7 @@ git | ``url``: URL of remote repository
957957 | ``dissociate``: (Boolean, default false). Dissociate the reference (see man git-clone).
958958import | ``url ``: Directory path relative to project root.
959959 | ``prune`` (\*): Delete destination directory before importing files.
960+ | ``recipeRelative`` (\*): Whether ``url`` is relative to recipe or project root. (optional)
960961svn | ``url``: URL of SVN module
961962 | ``revision``: Optional revision number (optional)
962963 | ``sslVerify`` (\*): Whether to verify the SSL certificate when fetching (optional)
@@ -1109,15 +1110,15 @@ git
11091110
11101111import
11111112 The ``import `` SCM copies the directory specified in ``url `` to the
1112- workspace. By default the destination is always overwritten and obsolete
1113+ workspace. By default, the destination is always overwritten and obsolete
11131114 files are deleted. Set ``prune `` to ``False `` to only overwrite if the
11141115 source file was changed more recently than the exiting destination in the
1115- workspace. Before Bob 0.18 the default was the other way around (see
1116+ workspace. Before Bob 0.18, the default was the other way around (see
11161117 :ref: `policies-pruneImportScm `).
11171118
1118- In contrast to the other SCMs that fetch across the network the ``import ``
1119+ In contrast to the other SCMs that fetch across the network, the ``import ``
11191120 SCM is always updated, even if ``--build-only `` is used. Because only local
1120- files are imported there is no possibility to inadvertely fetch unwanted
1121+ files are imported, there is no possibility to inadvertently fetch unwanted
11211122 changes from other users. The files should thus always be edited at the
11221123 import source location and not in the workspace.
11231124
@@ -1126,6 +1127,11 @@ import
11261127 content is included in the job configuration that will get too large
11271128 otherwise.
11281129
1130+ By default, the directory given in ``url `` is interpreted relative to the
1131+ project root. Alternatively, ``url `` can be made relative to the recipe
1132+ itself if ``recipeRelative `` is set to ``True ``. This is recommended
1133+ especially for recipes that are included as layers into other projects.
1134+
11291135svn
11301136 The `Svn `_ SCM, like git, requires the ``url `` attribute too. If you specify a
11311137 numeric ``revision `` Bob considers the SCM as deterministic.
0 commit comments