D885: httppasswordmgrdbproxy: specify exact arguments

2017-10-02 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGae2fcf7af409: httppasswordmgrdbproxy: specify exact 
arguments (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D885?vs=2297=2334

REVISION DETAIL
  https://phab.mercurial-scm.org/D885

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -146,11 +146,11 @@
 self._mgr = urlreq.httppasswordmgrwithdefaultrealm()
 return self._mgr
 
-def add_password(self, *args, **kwargs):
-return self._get_mgr().add_password(*args, **kwargs)
+def add_password(self, realm, uris, user, passwd):
+return self._get_mgr().add_password(realm, uris, user, passwd)
 
-def find_user_password(self, *args, **kwargs):
-return self._get_mgr().find_user_password(*args, **kwargs)
+def find_user_password(self, realm, uri):
+return self._get_mgr().find_user_password(realm, uri)
 
 def _catchterm(*args):
 raise error.SignalInterrupt



To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D885: httppasswordmgrdbproxy: specify exact arguments

2017-10-01 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We only ever call these functions in a single way, so let's just
  actually specify them. We need to do some string/bytes encoding
  dancing here for Python 3, so it'll help to know what arguments we
  need to convert.
  
  no-check-commit because I'm modifying functions that check-commit
  =
  
  does not like.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D885

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -146,11 +146,11 @@
 self._mgr = urlreq.httppasswordmgrwithdefaultrealm()
 return self._mgr
 
-def add_password(self, *args, **kwargs):
-return self._get_mgr().add_password(*args, **kwargs)
+def add_password(self, realm, uris, user, passwd):
+return self._get_mgr().add_password(realm, uris, user, passwd)
 
-def find_user_password(self, *args, **kwargs):
-return self._get_mgr().find_user_password(*args, **kwargs)
+def find_user_password(self, realm, uri):
+return self._get_mgr().find_user_password(realm, uri)
 
 def _catchterm(*args):
 raise error.SignalInterrupt



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel