1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00
borg/borg
Ed Blackman 13ddfdf4a3 Move pattern normalization decision into decorator
Using a decorator moves the duplicate code in the init methods into a
single decorator method, while still retaining the same runtime overhead
(zero for for the non-OSX path, one extra function call plus the call to
unicodedata.normalize for OSX).  The pattern classes are much visually
cleaner, and duplicate code limited to two lines normalizing the pattern
on OSX.

Because the decoration happens at class init time (vs instance init time
for the previous approach), the OSX and non-OSX test cases can no longer
be called in the same run, so I also removed the OSX test case monkey
patching and uncommented the platform skipif decorator.
2015-09-09 15:00:58 -04:00
..
testsuite Move pattern normalization decision into decorator 2015-09-09 15:00:58 -04:00
__init__.py propperly handle borg._version using setuptools_scm 2015-08-22 15:54:40 +02:00
__main__.py add a __main__.py to nuitka works 2015-07-20 16:16:32 +02:00
_chunker.c change 2 more chunker vars to off_t 2015-09-06 22:06:52 +02:00
_hashindex.c fix issue with negative "all archives" size, fixes #165 2015-08-29 04:46:13 +02:00
archive.py implement borg create --dry-run, attic issue #267 2015-09-08 03:12:45 +02:00
archiver.py implement borg create --dry-run, attic issue #267 2015-09-08 03:12:45 +02:00
cache.py Merge pull request #180 from ThomasWaldmann/read-device 2015-09-06 21:38:31 +02:00
chunker.pyx misc chunker parameter changes 2015-06-21 01:46:41 +02:00
compress.pyx deprecate the numeric --compression argument, rename null compression to none, update CHANGES 2015-08-14 23:00:04 +02:00
crypto.pyx rename package directory to borg 2015-05-22 17:48:54 +02:00
fuse.py Merge pull request #88 from ThomasWaldmann/py3style 2015-07-11 18:39:42 +02:00
hashindex.pyx generalize hashindex code for any key length 2015-08-16 14:51:15 +02:00
helpers.py Move pattern normalization decision into decorator 2015-09-09 15:00:58 -04:00
key.py deprecate the numeric --compression argument, rename null compression to none, update CHANGES 2015-08-14 23:00:04 +02:00
locking.py lock roster: catch file not found in remove() method and ignore it 2015-08-20 18:40:24 +02:00
lrucache.py Merge branch 'master' into lrucache 2015-08-14 10:59:21 +01:00
platform.py fix all references to package name 2015-05-22 19:21:41 +02:00
platform_darwin.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
platform_freebsd.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
platform_linux.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
remote.py remote: pragma: no cover for the stuff we can't test 2015-08-12 04:28:31 +02:00
repository.py use absolute path, attic issue #200, attic issue #137 2015-09-06 23:26:47 +02:00
xattr.py use borg-tmp as prefix for temporary files / directories 2015-07-11 17:22:12 +02:00