hgext/remotefilelog/shallowrepo.py
changeset 41077 517a51d9cd7f
parent 40845 b6a6dc1a14bd
child 41676 0531dff73d0b
equal deleted inserted replaced
41076:8ecb17b7f432 41077:517a51d9cd7f
   141             A wrapper that allows the remotefilelog to invoke sparsematch() if
   141             A wrapper that allows the remotefilelog to invoke sparsematch() if
   142             this is a sparse repository, or returns None if this is not a
   142             this is a sparse repository, or returns None if this is not a
   143             sparse repository.
   143             sparse repository.
   144             '''
   144             '''
   145             if revs:
   145             if revs:
   146                 return sparse.matcher(repo, revs=revs)
   146                 ret = sparse.matcher(repo, revs=revs)
   147             return sparse.matcher(repo)
   147             else:
       
   148                 ret = sparse.matcher(repo)
       
   149 
       
   150             if ret.always():
       
   151                 return None
       
   152             return ret
   148 
   153 
   149         def file(self, f):
   154         def file(self, f):
   150             if f[0] == '/':
   155             if f[0] == '/':
   151                 f = f[1:]
   156                 f = f[1:]
   152 
   157