Commit 57c87632 authored by Marcin Kasperski's avatar Marcin Kasperski
Browse files

Modifying pull request to be safer on old mercurials.

Requires meu 1.2.0
parent f1407b74b242
1.1.0
~~~~~~~~~~~~~~~~~~
Forward compatibility for Mercurial 3.8 (should not break old mercurials)
1.0.1
~~~~~~~~~~~~~~~~~~
......
......@@ -51,7 +51,7 @@ backend (by default keyring guesses, usually correctly, for example
you get KDE Wallet under KDE, and Gnome Keyring under Gnome or Unity).
'''
from mercurial import util, sslutil, cmdutil
from mercurial import util, sslutil
from mercurial.i18n import _
from mercurial.url import passwordmgr
from mercurial import mail
......@@ -65,9 +65,6 @@ import os
import sys
import re
cmdtable = {}
command = cmdutil.command(cmdtable)
# pylint: disable=invalid-name, line-too-long, protected-access, too-many-arguments
###########################################################################
......@@ -252,6 +249,11 @@ class PwdCache(object):
return self._cache.get(cache_key)
_re_http_url = re.compile(r'^https?://')
def is_http_path(url):
return bool(_re_http_url.search(url))
############################################################
# HTTP password management
############################################################
......@@ -690,10 +692,8 @@ def _smtp(ui):
# Custom commands
############################################################
_re_http_url = re.compile(r'^https?://')
def is_http_path(url):
return bool(_re_http_url.search(url))
cmdtable = {}
command = meu.command(cmdtable)
@command('keyring_check',
......
......@@ -36,7 +36,7 @@ setup(
],
install_requires=[
'keyring>=0.3',
'mercurial_extension_utils>=1.1.0',
'mercurial_extension_utils>=1.2.0',
],
zip_safe=True,
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment