Tox uses my personal hgrc which runs my extensions with hg 2.6 (which are not compatible)

RESOLVED FIXED

Status

Release Engineering
General
RESOLVED FIXED
3 years ago
9 months ago

People

(Reporter: armenzg, Assigned: armenzg)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

45 bytes, text/x-github-pull-request
Callek
: review+
Details | Review | Splinter Review
(Assignee)

Description

3 years ago
armenzg@armenzg-thinkpad:~/repos/tools$ /home/armenzg/repos/tools/.tox/py27-hg2.6/bin/hg
*** failed to import extension reviewboard from /home/armenzg/.mozbuild/version-control-tools/hgext/reviewboard/client.py: 'module' object has no attribute 'wireprotocommand'
*** failed to import extension firefoxtree from /home/armenzg/.mozbuild/version-control-tools/hgext/firefoxtree: 'module' object has no attribute 'wireprotocommand'
abort: No module named exchange!

armenzg@armenzg-thinkpad:~/repos/tools$ hg diff -pU 0
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -23,2 +23,3 @@ commands =
-    coverage erase
-    coverage run --branch --source {toxinidir}/lib/python {envbindir}/nosetests -v --with-xunit --rednose --force-color {toxinidir}/lib/python
+    hg --version
+    #coverage erase
+    #coverage run --branch --source {toxinidir}/lib/python {envbindir}/nosetests -v --with-xunit --rednose --force-color {toxinidir}/lib/python
armenzg@armenzg-thinkpad:~/repos/tools$ tox
GLOB sdist-make: /home/armenzg/repos/tools/setup.py
py27-hg2.6 inst-nodeps: /home/armenzg/repos/tools/.tox/dist/buildtools-1.0.6.zip
py27-hg2.6 runtests: commands[0] | hg --version
*** failed to import extension reviewboard from /home/armenzg/.mozbuild/version-control-tools/hgext/reviewboard/client.py: 'module' object has no attribute 'wireprotocommand'
*** failed to import extension firefoxtree from /home/armenzg/.mozbuild/version-control-tools/hgext/firefoxtree: 'module' object has no attribute 'wireprotocommand'
abort: No module named exchange!
ERROR: InvocationError: '/home/armenzg/repos/tools/.tox/py27-hg2.6/bin/hg --version'
__________________________________________________________________________________________________ summary __________________________________________________________________________________________________
ERROR:   py27-hg2.6: commands failed
armenzg@armenzg-thinkpad:~/repos/tools$ tox -e py27-hg3.1
GLOB sdist-make: /home/armenzg/repos/tools/setup.py
py27-hg3.1 create: /home/armenzg/repos/tools/.tox/py27-hg3.1
py27-hg3.1 installdeps: nose==1.3.0, rednose==0.4.1, coverage==3.6, pep8==1.4.3, jinja2==2.6, mock==1.0.1, webob==1.2.3, gevent==0.13.8, IPy==0.81, mercurial==3.1.2
py27-hg3.1 inst: /home/armenzg/repos/tools/.tox/dist/buildtools-1.0.6.zip
py27-hg3.1 runtests: commands[0] | hg --version
Mercurial Distributed SCM (version 3.1.2)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
__________________________________________________________________________________________________ summary __________________________________________________________________________________________________
  py27-hg3.1: commands succeeded
  congratulations :)
(Assignee)

Comment 1

3 years ago
gps, what is wireproto?
(Assignee)

Updated

3 years ago
Assignee: nobody → armenzg
(Assignee)

Comment 2

3 years ago
Created attachment 8553918 [details] [review]
Use test hgrc

Updated

3 years ago
Attachment #8553918 - Flags: review+
(Assignee)

Comment 3

3 years ago
Oh...
I realized that we can't merge pull requests because it is not the RoR.
(Assignee)

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Assignee)

Updated

3 years ago
Summary: Tox for the tools repo generates a bad hg for me → Tox uses my personal hgrc which runs my extensions with hg 2.6 (which are not compatible)
Component: Tools → General
Product: Release Engineering → Release Engineering
You need to log in before you can comment on or make changes to this bug.