Mercurial > hg-stable
comparison mercurial/changegroup.py @ 47162:a07d5cb03a85
revlog: rename `indexfile` to `_indexfile`
We want to make the actual location of the indexfile and location more of an
implementation details than what is is currently. In that process, we make the
attribute private.
Differential Revision: https://phab.mercurial-scm.org/D10574
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:22:16 +0200 |
parents | bc7d465ea11e |
children | 89e11a6da785 |
comparison
equal
deleted
inserted
replaced
47161:8a1a51d31e85 | 47162:a07d5cb03a85 |
---|---|
802 if store.linkrev(i) == clrev: | 802 if store.linkrev(i) == clrev: |
803 return i | 803 return i |
804 # We failed to resolve a parent for this node, so | 804 # We failed to resolve a parent for this node, so |
805 # we crash the changegroup construction. | 805 # we crash the changegroup construction. |
806 if util.safehasattr(store, 'target'): | 806 if util.safehasattr(store, 'target'): |
807 target = store.indexfile | 807 target = store._indexfile |
808 else: | 808 else: |
809 # some revlog not actually a revlog | 809 # some revlog not actually a revlog |
810 target = store._revlog.indexfile | 810 target = store._revlog._indexfile |
811 | 811 |
812 raise error.Abort( | 812 raise error.Abort( |
813 b"unable to resolve parent while packing '%s' %r" | 813 b"unable to resolve parent while packing '%s' %r" |
814 b' for changeset %r' % (target, rev, clrev) | 814 b' for changeset %r' % (target, rev, clrev) |
815 ) | 815 ) |