mercurial/hg.py
changeset 39555 cb675e95a2c2
parent 39553 130e5df346d5
child 39606 c5e6c1ba1c79
--- a/mercurial/hg.py	Tue Sep 11 16:59:17 2018 -0700
+++ b/mercurial/hg.py	Tue Sep 11 17:22:15 2018 -0700
@@ -737,6 +737,10 @@
                 revs = None
             local = destpeer.local()
             if local:
+                if narrow:
+                    with local.lock():
+                        local.setnarrowpats(storeincludepats, storeexcludepats)
+
                 u = util.url(abspath)
                 defaulturl = bytes(u)
                 local.ui.setconfig('paths', 'default', defaulturl, 'clone')