libbe.storage.vcs.monotone

Monotone backend.

class libbe.storage.vcs.monotone.Monotone(*args, **kwargs)

base.VCS implementation for Monotone.

Methods

add
ancestors
changed
check_storage_version
children
commit
connect
destroy
disconnect
exists
get
get_user_id
init
installed
is_readable
is_writeable
path
recursive_remove
remove
revision_id
root
set
storage_version
version
version_cmp
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()

This Page