stable
Clone or download
This task is part of story #9027 Preserve links at import Install the plugin, then xml import a project with a svn repository that contains references. Ex: <?xml version="1.0" encoding="UTF-8"?> <project unix-name="project42" full-name="Project 42" description="Secret project to find the answer" access="public"> <long-description> This is the long description of project 42 </long-description> <services> <service shortname="plugin_svn" enabled="true" /> </services> <svn> <repository name="MyRepository" dump-file="svndump.dump"> <references> <reference source="cmmt2016" target="2" /> </references> </repository> </svn> </project> If the svndump contains the revision 2, then when you create a comment in a changeset with the following body: See cmmt2016 or cmmt2017 for details. Then you can click on cmmt2016 and you are redirected to the revision 2 in the svn repository MyRepository. You cannot click on cmmt2017 as it is unknown. If the target revision does not exist, then the link is still extracted bc the svn revisions are only managed by svn server and Tuleap does not know if it exists or not. User will get a "404" page. Change-Id: I55c84da3f218534c6afb3bda35690191af58e2ab Bonus: remove dead code in svn plugin.
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/svn/include/Svn/Admin/GlobalAdminController.class.php | +0 | −1 | Go to diff View file |
M | plugins/svn/include/Svn/XMLRepositoryImporter.class.php | +42 | −15 | Go to diff View file |
M | plugins/svn/resources/svn-definition.rnc | +3 | −1 | Go to diff View file |
M | plugins/svn/resources/svn-definition.rng | +6 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/ChangeLog | +0 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/README.mkd | +5 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/VERSION | +1 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/db/install.sql | +6 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/db/uninstall.sql | +1 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/TeamforgeCompatSVN/Plugin/PluginDescriptor.php | +36 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/TeamforgeCompatSVN/Plugin/PluginInfo.php | +32 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/TeamforgeCompatSVN/ReferencesImporter.php | +80 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/TeamforgeCompatSVN/TeamforgeCompatDao.php | +55 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/TeamforgeCompatSVN/TeamforgeReferencesBuilder.php | +138 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/autoload.php | +23 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/constants.php | +21 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/include/teamforge_compat_svnPlugin.class.php | +112 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/site-content/en_US/teamforge_compat_svn.tab | +2 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/site-content/fr_FR/teamforge_compat_svn.tab | +2 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/tests/TeamforgeReferencesImporterTest.php | +69 | −0 | Go to diff View file |
A | plugins/teamforge_compat_svn/tests/bootstrap.php | +23 | −0 | Go to diff View file |
M | src/common/xml/resources/project/svn-definition.rng | +6 | −0 | Go to diff View file |
D | src/common/xml/resources/references-definition.rng | +0 | −17 | Go to diff View file |
M | tools/rpm/Makefile | +2 | −0 | Go to diff View file |
M | tools/rpm/tuleap.rhel6.spec | +2 | −0 | Go to diff View file |
M | tools/rpm/tuleap.spec | +2 | −0 | Go to diff View file |