rust/hg-core/src/operations/debugdata.rs
changeset 46431 645ee7225fab
parent 46167 8a4914397d02
child 46433 4b381dbbf8b7
equal deleted inserted replaced
46430:b84c3d43ff2e 46431:645ee7225fab
    91     let data = match rev.parse::<Revision>() {
    91     let data = match rev.parse::<Revision>() {
    92         Ok(rev) => revlog.get_rev_data(rev)?,
    92         Ok(rev) => revlog.get_rev_data(rev)?,
    93         _ => {
    93         _ => {
    94             let node = NodePrefix::from_hex(&rev)
    94             let node = NodePrefix::from_hex(&rev)
    95                 .map_err(|_| DebugDataErrorKind::InvalidRevision)?;
    95                 .map_err(|_| DebugDataErrorKind::InvalidRevision)?;
    96             let rev = revlog.get_node_rev(node.borrow())?;
    96             let rev = revlog.get_node_rev(node)?;
    97             revlog.get_rev_data(rev)?
    97             revlog.get_rev_data(rev)?
    98         }
    98         }
    99     };
    99     };
   100 
   100 
   101     Ok(data)
   101     Ok(data)