mercurial/localrepo.py
changeset 39557 623081f2abc2
parent 39551 261f1e8dc300
child 39580 a64a965b3610
--- a/mercurial/localrepo.py	Wed Sep 12 22:15:43 2018 +0900
+++ b/mercurial/localrepo.py	Wed Sep 12 22:19:29 2018 +0900
@@ -841,11 +841,7 @@
         return self._narrowmatch
 
     def setnarrowpats(self, newincludes, newexcludes):
-        target = self
-        if self.shared():
-            from . import hg
-            target = hg.sharedreposource(self)
-        narrowspec.save(target, newincludes, newexcludes)
+        narrowspec.save(self, newincludes, newexcludes)
         self.invalidate(clearfilecache=True)
 
     def __getitem__(self, changeid):