References

If you have existing references you want to keep at import, you can define them, services by services.

Supported references:

  • artfXXX for artifacts

  • pkgXXX for packages

  • relXXX for releases

  • wikiXXX for wiki pages

  • cmmtXXX for git or svn commits

Note

You need to install and activate the following packages to make it works:

  • referencealias_core

  • referencealias_git

  • referencealias_mediawiki

  • referencealias_svn

  • referencealias_tracker

Note

When you import serveral times the same project (for test purpose for instance) it can be convenient to have the references that points to the last version of the import.

To do so you can use the –force=references switch on the import command line.

Example of references:

 1  <?xml version="1.0" encoding="UTF-8"?>
 2  <project>
 3      <trackers>
 4          <tracker>
 5              ...
 6              <artifact id="469">...</artifact>
 7          </tracker>
 8          <tracker>
 9              <artifact id="470">...</artifact>
10              ...
11          </tracker>
12          <references>
13              <reference source="artf469" target="469" />
14              <reference source="artf470" target="470" />
15          </references>
16      </trackers>
17      <svn>
18          <repository>
19              ...
20              <references>
21                  <reference source="cmmt64324" target="1" />
22                  <reference source="cmmt64372" target="2" />
23              </references>
24          </repository>
25      </svn>
26      <git>
27          <repository bundle-path="data/g1" name="arch/x6_64" description="stuff">
28              <references>
29                  <reference source="cmmt332" target="4caed3441095c01882867e3d302fbab66584087a" />
30                  <reference source="cmmt333" target="606e4b15e7ac6cdbb036010cce201de3421423f0" />
31              </references>
32          </repository>
33      </git>
34      <frs>
35          <package id="10012" name="My package">...</package>
36          <package id="10013" name="My other package">
37              <release id="2345">...</release>
38          </package>
39          <references>
40              <reference source="pkg23" target="10012" />
41              <reference source="pkg75" target="10013" />
42              <reference source="rel465" target="2345" />
43          </references>
44      </frs>
45      <mediawiki pages-backup="wiki_pages.xml" language="fr_FR">
46          <references>
47              <reference source="wiki76532" target="Accueil" />
48          </references>
49      </mediawiki>
50  </project>