Bug 477687 - Mercurial plugin cannot update the workspace using tags
Summary: Mercurial plugin cannot update the workspace using tags
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: Plugins (show other bugs)
Version: 3.3.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 06:18 EDT by Kaz Nishimura CLA
Modified: 2015-09-17 06:18 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaz Nishimura CLA 2015-09-17 06:18:32 EDT
Though it is not intended to use tags to get a revision in the Mercurial plugin, specifying any tag as a branch fails to update the workspace.

It is because Mercurial keeps track of tags in .hgtags file that is also committed in the repository, the tag itself is not available at the tagged revision yet. As the Mercurial plugin first pulls revisions up to the specified tag and then updates the workspace, Mercurial cannot find a correct tag in the local repository and fails to do it.

For the Mercurial plugin to work with tags correctly, the entire repository must be pulled locally since .hgtags can be commited far later than the tagged revision or even on another branch.