Patchwork [8,of,8] largefiles: eliminate an unnecessary import of configitems

login
register
mail settings
Submitter Matt Harbison
Date Dec. 28, 2018, 6:47 a.m.
Message ID <f91292b9e400a63b462a.1545979642@Envy>
Download mbox | patch
Permalink /patch/37377/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 28, 2018, 6:47 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1545976438 18000
#      Fri Dec 28 00:53:58 2018 -0500
# Node ID f91292b9e400a63b462aa736448cecc07480a65a
# Parent  dae589aba13fe0327b1a975a4d5b39dfd33ef4ff
largefiles: eliminate an unnecessary import of configitems

Thanks to Yuya for pointing this out.

Patch

diff --git a/hgext/largefiles/__init__.py b/hgext/largefiles/__init__.py
--- a/hgext/largefiles/__init__.py
+++ b/hgext/largefiles/__init__.py
@@ -108,7 +108,6 @@  from __future__ import absolute_import
 
 from mercurial import (
     cmdutil,
-    configitems,
     extensions,
     exthelper,
     hg,
@@ -137,7 +136,7 @@  eh.merge(overrides.eh)
 eh.merge(proto.eh)
 
 eh.configitem('largefiles', 'minsize',
-    default=configitems.dynamicdefault,
+    default=eh.configitem.dynamicdefault,
 )
 eh.configitem('largefiles', 'patterns',
     default=list,