equal
deleted
inserted
replaced
1974 |
1974 |
1975 This function currently return a dictionary. However, more advanced |
1975 This function currently return a dictionary. However, more advanced |
1976 mapping object will likely be used in the future for a more |
1976 mapping object will likely be used in the future for a more |
1977 efficient/lazy code. |
1977 efficient/lazy code. |
1978 """ |
1978 """ |
1979 return self._revisiondata(nodeorrev, _df)[1] |
1979 # deal with <nodeorrev> argument type |
|
1980 if isinstance(nodeorrev, int): |
|
1981 rev = nodeorrev |
|
1982 else: |
|
1983 rev = self.rev(nodeorrev) |
|
1984 return self._sidedata(rev) |
1980 |
1985 |
1981 def _revisiondata(self, nodeorrev, _df=None, raw=False): |
1986 def _revisiondata(self, nodeorrev, _df=None, raw=False): |
1982 # deal with <nodeorrev> argument type |
1987 # deal with <nodeorrev> argument type |
1983 if isinstance(nodeorrev, int): |
1988 if isinstance(nodeorrev, int): |
1984 rev = nodeorrev |
1989 rev = nodeorrev |