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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sat Mar 31 13:15:03 EDT 2018


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

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)



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


More information about the Mercurial-devel mailing list