Code Repositories xandikos / 0d45335
Add delta describer functions. Jelmer Vernooń≥ 2 years ago
2 changed file(s) with 10 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
3434 It should still be possible to modify the git repository externally. If this is done, the
3535 index should automatically be updated.
3636
37 Implementation
38 ==============
37 Implementation - TDB
38 ====================
3939
4040 Use a TDB database (on disk or even in RAM). Store:
4141
4242 PRESENT/blobid -> ''
4343 KEY/blobid/<key> -> <value>
44
45 Implementation - Git
46 ====================
47
48 Keep a separate directory in Git somewhere, with one directory per component/property, nested.
49
50 comp=VCALENDAR/comp=VEVENT/....
5858 except KeyError:
5959 pass
6060 else:
61 if getattr(v, 'dt', None):
62 yield str(v.dt).encode('ascii')
63 else:
64 yield str(v).encode('utf-8')
61 yield v.to_ical()
6562 else:
6663 raise AssertionError('invalid key name %s' % key)
6764