diff hgext/remotefilelog/__init__.py @ 40558:354acd0dc637

remotefilelog: rename capability for legacy ssh file fetching method I think I want to delete this, but for now we'll just rename this so it's easy to tell apart from other strings that have the same value. Differential Revision: https://phab.mercurial-scm.org/D5126
author Augie Fackler <augie@google.com>
date Tue, 16 Oct 2018 16:38:40 -0400
parents 6d64e2abe8d3
children ed19958dbf5d
line wrap: on
line diff
--- a/hgext/remotefilelog/__init__.py	Thu Oct 04 00:11:37 2018 -0400
+++ b/hgext/remotefilelog/__init__.py	Tue Oct 16 16:38:40 2018 -0400
@@ -114,6 +114,7 @@
     util,
 )
 from . import (
+    constants,
     debugcommands,
     fileserverclient,
     remotefilectx,
@@ -282,7 +283,7 @@
             # patterns.
             def stream_out_shallow(orig):
                 caps = remote.capabilities()
-                if shallowrepo.requirement in caps:
+                if constants.NETWORK_CAP_LEGACY_SSH_GETFILES in caps:
                     opts = {}
                     if repo.includepattern:
                         opts['includepattern'] = '\0'.join(repo.includepattern)