Changeset - d10306a66799
[Not reviewed]
default
0 1 0
domruf - 8 years ago 2017-06-06 21:42:13
dominikruf@gmail.com
hg: remove _rcpath override

It is unclear what the purpose of this snippet was, and Mercurial 4.2 has no
_rcpath anymore.

AFAICS, since we use ui.ui() instead of ui.ui.load(), the config files are not
used anyway.
1 file changed with 0 insertions and 7 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_hg.py
Show inline comments
 
@@ -9,19 +9,12 @@ from kallithea.lib.vcs.exceptions import
 
from kallithea.lib.vcs.nodes import NodeKind, NodeState
 
from kallithea.tests.vcs.conf import TEST_HG_REPO, TEST_HG_REPO_CLONE, \
 
    TEST_HG_REPO_PULL, TEST_TMP_PATH
 
from kallithea.lib.vcs.utils.compat import unittest
 

	
 

	
 
# Use only clean mercurial's ui
 
from kallithea.lib.vcs.utils.hgcompat import mercurial
 
mercurial.scmutil.rcpath()
 
if mercurial.scmutil._rcpath:
 
    mercurial.scmutil._rcpath = mercurial.scmutil._rcpath[:1]
 

	
 

	
 
class MercurialRepositoryTest(unittest.TestCase):
 

	
 
    def __check_for_existing_repo(self):
 
        if os.path.exists(TEST_HG_REPO_CLONE):
 
            pytest.fail('Cannot test mercurial clone repo as location %s already '
 
                      'exists. You should manually remove it first.'
0 comments (0 inline, 0 general)