Closed Bug 1184229 Opened 9 years ago Closed 9 years ago

mach mercurial-setup fails to update reviewboard

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: drno, Assigned: gps)

Details

Attachments

(1 file)

I had my own checkout of the version-control-tools already.

After running 'mach mercurial-setup' for the first time mach had updated the bzexport to the copy of version-control-tools in my .mozbuild directory like this:

bzexport = /Users/nohlmeier/.mozbuild/version-control-tools/hgext/bzexport

But it did not touch the reviewboard one:

reviewboard = /Users/nohlmeier/checkouts/version-control-tools/hgext/reviewboard/client.py

Which turned out to be very bad, because on my next push to review board mach complain mid-flight that my version of the review board plugin is outdated.
A few people have hit this problem. Underlying cause is reviewboard is picking up Python modules from an earlier loaded and outdated version-control-tools repo. We should probably add detection to `mach mercurial-setup` for multiple version-control-tools checkouts.
Workaround is to consolidate to a single version-control-tools checkout, at least as far as hgrc references go.
Since a few people have been bitten by this, I'm going to see what I can do.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Bug 1184229 - Detect multiple version-control-tools repos in Mercurial config; r?smacleod

Having multiple version-control-tools repositories references in your
hgrc could lead to one repository importing code from another, depending
on how sys.path modification works from version-control-tools
repositories. Detect it and issue a warning.
Attachment #8635512 - Flags: review?(smacleod)
Attachment #8635512 - Flags: review?(smacleod) → review+
Comment on attachment 8635512 [details]
MozReview Request: Bug 1184229 - Detect multiple version-control-tools repos in Mercurial config; r?smacleod

https://reviewboard.mozilla.org/r/13555/#review12313

Ship It!
url:        https://hg.mozilla.org/integration/fx-team/rev/4beff7208d94ccecfe7c25d40e60a2d64a42da05
changeset:  4beff7208d94ccecfe7c25d40e60a2d64a42da05
user:       Gregory Szorc <gps@mozilla.com>
date:       Mon Jul 27 13:44:39 2015 -0700
description:
Bug 1184229 - Detect multiple version-control-tools repos in Mercurial config; r=smacleod

Having multiple version-control-tools repositories references in your
hgrc could lead to one repository importing code from another, depending
on how sys.path modification works from version-control-tools
repositories. Detect it and issue a warning.
https://hg.mozilla.org/mozilla-central/rev/4beff7208d94
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: