Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (36 sloc) 1.309 kb
Copyright © 2011 MLstate
This file is part of OPA.
OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.
You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <>.
@author1 Henri Binsztok,
@author2 Gregoire Makridis
type ns =
| Data of DataImpl.t
| Link of Path.t
| Copy of Revision.t option * Path.t
| UnsetData
type t = ns
type io = ns
let empty = UnsetData
let to_string = function
| UnsetData -> "# UNSET #"
| Link p -> Printf.sprintf "# LINK --> %s #" (Path.to_string p)
| Copy (r, p) -> Printf.sprintf "# COPY --> %s, %s #"
(Option.to_string Revision.to_string r) (Path.to_string p)
| Data e -> Printf.sprintf "# DATA %s #" (DataImpl.to_string e)
let get_string = to_string
let version = 1
let index_fun = function
| Data d -> DataImpl.index_fun d
| _ -> StringMap.empty
Jump to Line
Something went wrong with that request. Please try again.