##// END OF EJS Templates
rust-changelog: accessing the index...
Georges Racinet -
r52618:bbe59cc5 default
parent child Browse files
Show More
@@ -8,6 +8,7 b' use chrono::{DateTime, FixedOffset, Naiv'
8 use itertools::{Either, Itertools};
8 use itertools::{Either, Itertools};
9
9
10 use crate::errors::HgError;
10 use crate::errors::HgError;
11 use crate::revlog::Index;
11 use crate::revlog::Revision;
12 use crate::revlog::Revision;
12 use crate::revlog::{Node, NodePrefix};
13 use crate::revlog::{Node, NodePrefix};
13 use crate::revlog::{Revlog, RevlogEntry, RevlogError};
14 use crate::revlog::{Revlog, RevlogEntry, RevlogError};
@@ -81,6 +82,10 b' impl Changelog {'
81 ) -> Result<Revision, RevlogError> {
82 ) -> Result<Revision, RevlogError> {
82 self.revlog.rev_from_node(node)
83 self.revlog.rev_from_node(node)
83 }
84 }
85
86 pub fn get_index(&self) -> &Index {
87 &self.revlog.index
88 }
84 }
89 }
85
90
86 impl Graph for Changelog {
91 impl Graph for Changelog {
General Comments 0
You need to be logged in to leave comments. Login now