# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-03-31 09:03:37 # Node ID 912f4f64047fe35471e2441a87ef3cd7409d3c37 # Parent 15691d71da2343b469e0e457946d3f37698722f1 infinitepush: drop the default value of config options which are registered Differential Revision: https://phab.mercurial-scm.org/D2991 diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py --- a/hgext/infinitepush/__init__.py +++ b/hgext/infinitepush/__init__.py @@ -241,7 +241,7 @@ def _tryhoist(ui, remotebookmark): 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 @@ class bundlestore(object): 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)