Project

General

Profile

Actions

Bug #4328

open

change-to command checks out across branches

Added by Chad Berkley over 14 years ago. Updated about 14 years ago.

Status:
New
Priority:
Immediate
Assignee:
Category:
build system
Target version:
Start date:
08/21/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4328

Description

If kepler is currently in a branch, the change-to command should not update from the trunk. Once a branch is selected with the -Dbranch=xxx param, the build system should keep the current workspace in the branch until the user updated to another branch or the trunk. The build system should also print a banner alerting the user that he/she is working in a branch to avoid confusion.

this bug arose when we added several modules to the trunk. Matt was working in a branch (unknowingly) and when he ran 'ant change-to -Dsuite=kepler' it updated the kepler/module-info/modules.txt file from the trunk, but did not update the rest of the modules to the trunk so the build failed. The build-area was also running from the branch so the excludes file was not updated and would not allow him to build ptolemy.

Actions #1

Updated by David Welker about 14 years ago

What is the purpose of the -Dbranch option? All branches should be named differently, so this option should not be necessary. If the branch has a standard name and is stored in the standard location, the build knows where to look. If the branch does not have a standard name or is not in the standard location, simply add the module name and location to registry.txt and the build will know where to look. The only limitation is that you cannot have a branch with the exact same name. But, that limitation is a feature, not a bug.

In my view, this bug should be eliminated by removing the -Dbranch option from the change-to command.

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4328

Actions

Also available in: Atom PDF