return $this->fetch_revision(max(array_keys($data)));
}
+ // ###################################################################
+ /**
+ * Returns the latest revision that the file is at
+ *
+ * @access public
+ *
+ * @param string Node path
+ *
+ * @return integer HEAD revision
+ */
+ function fetch_head_revision($node)
+ {
+ $data = $this->fetch_node($node);
+ $data = $data['history'];
+
+ return max(array_keys($data));
+ }
+
// ###################################################################
/**
* Fetches the latest revision for a given path