mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
basectx: add subrev method to return the rev of a subrepo given a subpath
This will be used in an upcoming patch to simplify the status method by eliminating an if block.
This commit is contained in:
parent
95a0ecfb91
commit
ede9f80137
@ -132,6 +132,9 @@ class basectx(object):
|
||||
def substate(self):
|
||||
return subrepo.state(self, self._repo.ui)
|
||||
|
||||
def subrev(self, subpath):
|
||||
return self.substate[subpath][1]
|
||||
|
||||
def rev(self):
|
||||
return self._rev
|
||||
def node(self):
|
||||
|
Loading…
Reference in New Issue
Block a user