diff hgext/largefiles/__init__.py @ 34917:ee9243715c59 stable

registrar: host "dynamicdefault" constant by configitem object This is the common pattern seen in the other registrar classes.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 21 Oct 2017 13:13:20 +0900
parents 8cf0a6cd1ed2
children ecac0006b90e
line wrap: on
line diff
--- a/hgext/largefiles/__init__.py	Sat Oct 21 13:04:58 2017 +0900
+++ b/hgext/largefiles/__init__.py	Sat Oct 21 13:13:20 2017 +0900
@@ -107,7 +107,6 @@
 from __future__ import absolute_import
 
 from mercurial import (
-    configitems,
     hg,
     localrepo,
     registrar,
@@ -131,7 +130,7 @@
 configitem = registrar.configitem(configtable)
 
 configitem('largefiles', 'minsize',
-    default=configitems.dynamicdefault,
+    default=configitem.dynamicdefault,
 )
 configitem('largefiles', 'patterns',
     default=list,