Index: scmtools/hg.py
===================================================================
--- scmtools/hg.py (revision 1390)
+++ scmtools/hg.py (working copy)
@@ -8,7 +8,9 @@
def __init__(self, repository):
SCMTool.__init__(self, repository)
if repository.path.startswith('http'):
- self.client = HgWebClient(repository.path)
+ self.client = HgWebClient(repository.path,
+ repository.username,
+ repository.password)
else:
self.client = HgClient(repository.path)
@@ -73,8 +75,10 @@
class HgWebClient:
- def __init__(self, repoPath):
+ def __init__(self, repoPath, username, password):
self.url = repoPath
+ self.username = username
+ self.password = password
def cat_file(self, path, rev="tip"):
if rev == HEAD:
@@ -82,7 +86,11 @@
elif rev == PRE_CREATION:
rev = ""
try:
-