Closed Bug 1124797 Opened 9 years ago Closed 9 years ago

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

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: armenzg)

Details

Attachments

(1 file)

45 bytes, text/x-github-pull-request
Callek
: review+
Details | Review
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 :)
gps, what is wireproto?
Assignee: nobody → armenzg
Attached file Use test hgrc
Attachment #8553918 - Flags: review+
Oh...
I realized that we can't merge pull requests because it is not the RoR.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: