changeset 1537:27c4daf50520

svnrepo: use configlist instead of rolling it ourselves
author Augie Fackler <raf@durin42.com>
date Wed, 25 Oct 2017 22:57:29 -0400
parents ed7c66b8cea6
children b0eca4d96a53
files hgsubversion/svnrepo.py
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnrepo.py
+++ b/hgsubversion/svnrepo.py
@@ -151,12 +151,9 @@ class svnremoterepo(peerrepository):
 
     @property
     def password_stores(self):
-        pws = self.ui.config('hgsubversion', 'password_stores', None)
-        if pws is not None:
-            # Split pws at comas and strip neighbouring whitespace (whitespace
-            # at the beginning and end of pws has already been removed by the
-            # config parser).
-            return re.split(r'\s*,\s*', pws)
+        pws = self.ui.configlist('hgsubversion', 'password_stores')
+        if pws:
+            return pws
         return None
 
     @propertycache