Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355724 - Providers should not switch branch/tag unless explicitly told to do so
Summary: Providers should not switch branch/tag unless explicitly told to do so
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 354085
  Show dependency tree
 
Reported: 2011-08-24 11:39 EDT by Thomas Hallgren CLA
Modified: 2019-02-25 14:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hallgren CLA 2011-08-24 11:39:31 EDT
Buckminster currently defaults to using the SVN trunk and Git master when the cquery has no advice to switch the branch/tag. This leads to a bunch of problems when integrating with tools like Hudson.

Example:
The build checks out a releng project from Git using branch 'dev'. It then imports using the CQUERY that it finds there. The CQUERY doesn't have any advice node so the when the git reader finds other projects to include in the build in the same clone, it now makes an attempt to switch to the 'master' branch which in turn leads to conflicts.

This can be solved by adding an advice to the CQUERY that appoints the branch where the CQUERY resides but remembering to do that every time a new branch is created will quickly become a nightmare. A much better alternative is to let 'no applicable branch/tag advice' mean 'use current HEAD'.
Comment 1 Thomas Hallgren CLA 2011-08-25 03:38:05 EDT
Fixed for the Git provider. This isn't really applicable for SVN since the resolution is performed against the remote repository and it has no notion of a 'current'.

The fix is in http://git.eclipse.org/c/buckminster/buckminster.git/commit/?id=beaacc2f7b36294026f1da58bc0baca97024769b