Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
52869 views
1
"""
2
Dummy SCM backend for Digress.
3
"""
4
5
from random import random
6
7
def checkout(revision):
8
"""
9
Checkout a revision.
10
"""
11
pass
12
13
def current_rev():
14
"""
15
Get the current revision
16
"""
17
return str(random())
18
19
def revisions(rev_a, rev_b):
20
"""
21
Get a list of revisions from one to another.
22
"""
23
pass
24
25
def stash():
26
"""
27
Stash the repository.
28
"""
29
pass
30
31
def unstash():
32
"""
33
Unstash the repository.
34
"""
35
pass
36
37
def bisect(command, revision):
38
"""
39
Perform a bisection.
40
"""
41
raise NotImplementedError("dummy SCM backend does not support bisection")
42
43