| Summary: | [fetchFactory] issues with qualifier expansion | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||||
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | aniefer, david_williams, kim.moir, Michal.Tkacz, pwebster | ||||||
| Version: | 0.12 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Stephan Herrmann
Created attachment 208083 [details]
proposed fix
Without much ado here's the version that is just now driving my first
git-based PDE-build.
Changes:
(1) distinguish two entries in entryInfos:
KEY_CHECKOUT_TAG: used only locally for the git checkout command
IFetchFactory.KEY_ELEMENT_TAG: this value is used by PDE/Build for
qualifier replacement
(2) Set KEY_CHECKOUT_TAG to what's found in map or override, except:
if nothing is found use "master"
=> let's you omit the tag field in the map file for all plugins that
should be built from HEAD/master
(3) If tag is "master" or "HEAD" leave IFetchFactory.KEY_ELEMENT_TAG unset,
to allow PDE/Build to use the current timestamp as the qualifier.
(4) If tag contains slashes, use only the last segment (after the last slash)
as the value for IFetchFactory.KEY_ELEMENT_TAG, to avoid that PDE/Build
creates illegal version qualifier containing '/'.
Created attachment 208190 [details]
improved fix
Slight improvements:
Always use "origin/master" rather than "master" to ensure pulling from origin
during checkout.
Create patch using git cli (rather than EGit) to get a better patch.
|