Patchwork D2991: infinitepush: drop the default value of config options which are registered

login
register
mail settings
Submitter phabricator
Date March 31, 2018, 5:15 p.m.
Message ID <cb77e1513fe668267baf49c11305d739@localhost.localdomain>
Download mbox | patch
Permalink /patch/30067/
State Not Applicable
Headers show

Comments

phabricator - March 31, 2018, 5:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG912f4f64047f: infinitepush: drop the default value of config options which are registered (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2991?vs=7458&id=7468

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

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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 @@ 
 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)