infinitepush: drop the default value of config options which are registered
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 31 Mar 2018 14:33:37 +0530
changeset 37235 912f4f64047f
parent 37234 15691d71da23
child 37236 c1fac3878196
infinitepush: drop the default value of config options which are registered Differential Revision: https://phab.mercurial-scm.org/D2991
hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py	Sat Mar 31 14:31:29 2018 +0530
+++ b/hgext/infinitepush/__init__.py	Sat Mar 31 14:33:37 2018 +0530
@@ -241,7 +241,7 @@
 class bundlestore(object):
     def __init__(self, repo):
         self._repo = repo
-        storetype = self._repo.ui.config('infinitepush', 'storetype', '')
+        storetype = self._repo.ui.config('infinitepush', 'storetype')
         if storetype == 'disk':
             from . import store
             self.store = store.filebundlestore(self._repo.ui, self._repo)
@@ -251,7 +251,7 @@
             raise error.Abort(
                 _('unknown infinitepush store type specified %s') % storetype)
 
-        indextype = self._repo.ui.config('infinitepush', 'indextype', '')
+        indextype = self._repo.ui.config('infinitepush', 'indextype')
         if indextype == 'disk':
             from . import fileindexapi
             self.index = fileindexapi.fileindexapi(self._repo)