-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTDESIGN
42 lines (36 loc) · 785 Bytes
/
TDESIGN
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
Transaction Design:
===================
init
- move initial diff into objects/ dir
- create initial history entry
push
- get remote history
- get local history
- find common version
- update remote history
- get list of required remote history objects
- transfer objects from local to remote
pull
- check uncommitted changes
- get remote history
- get local history
- transfer history objects
revert
- ServerLock
- delete new links / inodes vmin > new_vmax
- delete history entries > new_vmax
- unlock ServerLock
commit
- scan for new files
loop (ChangedINodes):
- integrate new files via hash in inode table
- generate diff
- expected hash cmp
- xz diff
- store history entry
- clear changed inodes
clone
- setup empty repository
=> pull
merge
status