-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.py
More file actions
44 lines (44 loc) · 1.68 KB
/
client.py
File metadata and controls
44 lines (44 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# import graphics_designer
# import website_manager
#
# for i in range(1, 9):
# print(i, website_manager.generate_commit_manifest(i))
#
# # def gen_example_database():
# # db = Database('databases/database')
# # db.delete_repository(1)
# # db.remove("repos")
# # db.remove('branches')
# # db.remove('commits')
# #
# # # names = ["Dan", "Guy", "Eran", "Dvir", "Ron"]
# # # for name in names:
# # # db.add_user(name, name+"_pass")
# #
# # db.create_repository("This project", "Dan, Guy, Dvir, Eran")
# # db.create_repository("some other repo", "Dan, Eran, Ron F")
# #
# # r1 = db.get_repo(1)
# # r2 = db.get_repo(2)
# #
# # r1_b = r1.get_branches()
# # r2_b = r2.get_branches()
# # # name, comment, creator, previous=-1, first=False, next_commitx=-1
# # r1_b[0].create_commit("First commit", "Starting database, dan.", "Dan")
# # r1_b[0].create_commit("Second commit", "Updated something small", "Dan")
# #
# # r1.fork("Main", "Dan", "Second branch")
# # r1_b = r1.get_branches()
# # r1_b[0].create_commit("Bug add", "Added Herobrine", "Dvir")
# # r1_b[1].create_commit("Changed project", "Made dan throw away all his work!", "Eran")
# # r1_b[1].create_commit("Bug fix", "Removed Herobrine", "Dan")
# # r1.fork("Second branch", "Dan", "Third branch")
# # r1_b[1].create_commit("pain", "Crying in the corner while starting anew", "Dan")
# # r1.merge(r1_b[1].get_id(), r1_b[0].get_id(), "Eran", "merge attempt", "hope this works lololol")
# # # print(json.dumps(db.to_json(), indent=3))
# # # print("\n\n\n")
# # # print(db.to_json())
#
# # def uploaded_to_
#
#