mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 779431 - symbolstore.py ignores SRCSRV_ROOT if hg provides a path. r=:ted
This commit is contained in:
parent
7120862890
commit
a3204f8cd0
@ -248,13 +248,15 @@ class HGFileInfo(VCSFileInfo):
|
||||
if not srcdir in HGRepoInfo.repos:
|
||||
rev = read_output('hg', '-R', srcdir,
|
||||
'parent', '--template={node|short}')
|
||||
path = read_output('hg', '-R', srcdir,
|
||||
'showconfig', 'paths.default')
|
||||
if path == '':
|
||||
hg_root = os.environ.get("SRCSRV_ROOT")
|
||||
if hg_root:
|
||||
path = hg_root
|
||||
else:
|
||||
# Look for the default hg path. If SRVSRV_ROOT is set, we
|
||||
# don't bother asking hg.
|
||||
hg_root = os.environ.get("SRCSRV_ROOT")
|
||||
if hg_root:
|
||||
path = hg_root
|
||||
else:
|
||||
path = read_output('hg', '-R', srcdir,
|
||||
'showconfig', 'paths.default')
|
||||
if not path:
|
||||
print >> sys.stderr, "Failed to get HG Repo for %s" % srcdir
|
||||
cleanroot = None
|
||||
if path != '': # not there?
|
||||
|
Loading…
Reference in New Issue
Block a user