Closed Bug 1415802 Opened 7 years ago Closed 7 years ago

Running ./mach try on a mercurial repository reports "Could not detect version control. Only `hg` or `git` are supported."

Categories

(Firefox Build System :: MozillaBuild, defect)

x86_64
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1415374

People

(Reporter: birtles, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

I'm not sure what changed, but now when I try to run ./mach try I get: Could not detect version control. Only `hg` or `git` are supported. I'll see what I can dig up.
Oh wait, this appears to be MozillaBuild 3.1 specific. It works in MozillaBuild 3.0.
Component: Task Configuration → MozillaBuild
Product: Taskcluster → mozilla.org
Version: unspecified → other
Note that this is broken for me in MozillaBuild 3.1 even after replacing _ctypes.pyd with the version from MozillaBuild 3.0 so something else seems to be amiss.
Attached patch Debug patchSplinter Review
I'm tempted to make this depend on bug 1413922. Though until we know the problem here there's no guarantee that'll end up fixing it. Brian, could you apply this patch and run it again? It should let us know what's going on at least. Thanks!
Hmm, that's odd. With that patch applied, running 'mach try empty' (which I know is not valid, but with MozillaBuild 3.0 it at least gives me a decent error message), I get: $ ./mach try empty abort: cannot import name _remove_dead_weakref! Error running mach: ['try', 'empty'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: CalledProcessError: Command '['hg', 'root']' returned non-zero exit status 255 File "c:\moz\src1\tools/tryselect/mach_commands.py", line 164, in try_empty return run_empty_try(**kwargs) File "c:\moz\src1\tools\tryselect\selectors\empty.py", line 17, in run_empty_try vcs = VCSHelper.create() File "c:\moz\src1\tools\tryselect\vcs.py", line 67, in create vcs, root = cls.find_vcs() File "c:\moz\src1\tools\tryselect\vcs.py", line 58, in find_vcs output = subprocess.check_output(cmd).strip() File "c:\mozilla-build\python\lib\subprocess.py", line 219, in check_output raise CalledProcessError(retcode, cmd, output=output)
This is likely `hg root` failing to work. From a MozillaBuild shell, please paste the output of the following: $ hg --traceback root $ hg.exe --traceback root Also, we know from bug 1415374 that Mercurial seems to be busted somehow in MozillaBuild 3.1. This bug smells like a dupe. Also, a potential workaround is: $ pip install --upgrade --force-reinstall Mercurial That will use the latest Mercurial package from PyPI. I think that package is different from what is packaged in MozillaBuild 3.1.
This is almost certainly a dupe of bug 1415374.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: