Closed Bug 779431 Opened 12 years ago Closed 12 years ago

SRCSRV_ROOT ignored if hg finds a root.

Categories

(Toolkit :: Crash Reporting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: markh, Assigned: markh)

Details

Attachments

(1 file)

I've a mozilla-central clone in one directory, and in a different directory a clone of that first directory - ie, the second directory is an "indirect" clone of mozilla-central.

Running "make buildsymbols" in that second directory rightly complains:

 Could not determine repo info for o:\src\mm\mozilla-hg\mc-socialapi-landing.  This is either not a clone of the web-based repository, or you have not specified SRCSRV_ROOT, or the clone is corrupt.

Fair enough - so I set SRCSRV_ROOT to be the location of mozilla-central but it continues to fail with the same error.

Looking in symbolstore.py, I see that HGFileInfo.__init__ first attempts to use 'hg' to find the root, and only if that fails does SRCSRV_ROOT get looked at.  In my scenario, hg does correctly provide the root (pointing at the other directory), so SRCSRC_ROOT doesn't get looked at.  It probably should trust SRCSRV_ROOT if it is set and only ask hg if it is not.
Seems pretty reasonable.
This patch fixes things for me.  Not sure who could review this though...
Assignee: nobody → mhammond
Pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/6afd61ba31de
Status: NEW → ASSIGNED
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/6afd61ba31de
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: