Show More
@@ -211,7 +211,7 b' def reposetup(ui, repo):' | |||||
211 | class lfsrepo(repo.__class__): |
|
211 | class lfsrepo(repo.__class__): | |
212 | @localrepo.unfilteredmethod |
|
212 | @localrepo.unfilteredmethod | |
213 | def commitctx(self, ctx, error=False): |
|
213 | def commitctx(self, ctx, error=False): | |
214 |
repo.svfs.options['lfstrack'] = _trackedmatcher(self |
|
214 | repo.svfs.options['lfstrack'] = _trackedmatcher(self) | |
215 | return super(lfsrepo, self).commitctx(ctx, error) |
|
215 | return super(lfsrepo, self).commitctx(ctx, error) | |
216 |
|
216 | |||
217 | repo.__class__ = lfsrepo |
|
217 | repo.__class__ = lfsrepo | |
@@ -238,7 +238,7 b' def reposetup(ui, repo):' | |||||
238 | else: |
|
238 | else: | |
239 | repo.prepushoutgoinghooks.add('lfs', wrapper.prepush) |
|
239 | repo.prepushoutgoinghooks.add('lfs', wrapper.prepush) | |
240 |
|
240 | |||
241 |
def _trackedmatcher(repo |
|
241 | def _trackedmatcher(repo): | |
242 | """Return a function (path, size) -> bool indicating whether or not to |
|
242 | """Return a function (path, size) -> bool indicating whether or not to | |
243 | track a given file with lfs.""" |
|
243 | track a given file with lfs.""" | |
244 | if not repo.wvfs.exists('.hglfs'): |
|
244 | if not repo.wvfs.exists('.hglfs'): |
General Comments 0
You need to be logged in to leave comments.
Login now