Mercurial > hg
comparison hgext/largefiles/overrides.py @ 24336:c9f4ef967a1d
largefiles: replace 'ctx._repo' with 'ctx.repo()'
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 12 Mar 2015 23:08:16 -0400 |
parents | 23438bceba04 |
children | 66a69da9cde4 |
comparison
equal
deleted
inserted
replaced
24335:d6440a5076a5 | 24336:c9f4ef967a1d |
---|---|
758 | 758 |
759 # revert supports recursing into subrepos, and though largefiles | 759 # revert supports recursing into subrepos, and though largefiles |
760 # currently doesn't work correctly in that case, this match is | 760 # currently doesn't work correctly in that case, this match is |
761 # called, so the lfdirstate above may not be the correct one for | 761 # called, so the lfdirstate above may not be the correct one for |
762 # this invocation of match. | 762 # this invocation of match. |
763 lfdirstate = lfutil.openlfdirstate(ctx._repo.ui, ctx._repo, False) | 763 lfdirstate = lfutil.openlfdirstate(ctx.repo().ui, ctx.repo(), False) |
764 | 764 |
765 def tostandin(f): | 765 def tostandin(f): |
766 if lfutil.standin(f) in ctx: | 766 if lfutil.standin(f) in ctx: |
767 return lfutil.standin(f) | 767 return lfutil.standin(f) |
768 elif lfutil.standin(f) in repo[None] or lfdirstate[f] == 'r': | 768 elif lfutil.standin(f) in repo[None] or lfdirstate[f] == 'r': |