equal
deleted
inserted
replaced
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 |