Mercurial > hgsubversion
comparison hgsubversion/stupid.py @ 1565:8a66277136ab
cleanup: use __getitem__ instead of .changectx on localrepo
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 20 Apr 2018 15:47:08 -0400 |
parents | ae572c9be4e6 |
children | 7bb6562feb85 |
comparison
equal
deleted
inserted
replaced
1564:70eb9b6b0320 | 1565:8a66277136ab |
---|---|
372 if svnrev in ctxs: | 372 if svnrev in ctxs: |
373 return ctxs[svnrev] | 373 return ctxs[svnrev] |
374 changeid = meta.get_parent_revision(svnrev + 1, branch, True) | 374 changeid = meta.get_parent_revision(svnrev + 1, branch, True) |
375 ctx = None | 375 ctx = None |
376 if changeid != revlog.nullid: | 376 if changeid != revlog.nullid: |
377 ctx = meta.repo.changectx(changeid) | 377 ctx = meta.repo[changeid] |
378 ctxs[svnrev] = ctx | 378 ctxs[svnrev] = ctx |
379 return ctx | 379 return ctx |
380 | 380 |
381 # filter copy information for current branch | 381 # filter copy information for current branch |
382 branchpath = (branchpath and branchpath + '/') or '' | 382 branchpath = (branchpath and branchpath + '/') or '' |