libbe.storage.vcs.monotone
¶
Monotone backend.
-
class
libbe.storage.vcs.monotone.
Monotone
(*args, **kwargs)¶ base.VCS
implementation for Monotone.Methods
add
(id, *args, **kwargs)Add an entry ancestors
(*args, **kwargs)Return a list of the specified entry’s ancestors’ ids. changed
(revision)check_storage_version
()children
(*args, **kwargs)Return a list of specified entry’s children’s ids. commit
(*args, **kwargs)Commit the current repository, with a commit message string summary and body. connect
()Open a connection to the repository. destroy
()Remove the storage repository. disconnect
()Close the connection to the repository. exists
(*args, **kwargs)Check an entry’s existence get
(*args, **kwargs)Get contents of and entry as they were in a given revision. get_user_id
()Get the VCS’s suggested user id (e.g. init
()Create a new storage repository. installed
()is_readable
()is_writeable
()path
(id[, revision, relpath])recursive_remove
(*args, **kwargs)Remove an entry and all its decendents. remove
(*args, **kwargs)Remove an entry. revision_id
([index])root
()Set the root directory to the path’s VCS root. set
(id, value, *args, **kwargs)Set the entry contents. storage_version
([revision, path])Return the storage version of the on-disk files. version
()version_cmp
(*args)Compare the installed Monotone version V_i with another version V_o (given in *args). -
client
= 'mtn'¶
-
name
= 'monotone'¶
-
version_cmp
(*args)¶ Compare the installed Monotone version V_i with another version V_o (given in *args). Returns
1 if V_i > V_o 0 if V_i == V_o -1 if V_i < V_o Examples
>>> m = Monotone(repo='.') >>> m._version = '7.1' >>> m.version_cmp(7, 1) 0 >>> m.version_cmp(7, 2) -1 >>> m.version_cmp(7, 0) 1 >>> m.version_cmp(8, 0) -1
-
-
libbe.storage.vcs.monotone.
new
()¶