Thomas Waldmann
116a60f979
patching objects does not work with the borg.exe binary, fixes #2700
2017-07-03 01:55:11 +02:00
Marian Beermann
41b52ff0f5
Archives.list: reverse result after applying all other filters
2017-07-03 00:02:26 +02:00
Marian Beermann
2db377d6fb
fix --last, --first accepting negative values
...
also don't accept zero, because every use of these doesn't cover that case,
and it arguably doesn't make a lot of sense.
2017-07-03 00:02:26 +02:00
Marian Beermann
51c1c22c1f
fix reversed archive ordering with --last
2017-07-02 22:48:54 +02:00
TW
c624e715ad
Merge pull request #2775 from ThomasWaldmann/fuse-versions-file-ext
...
FUSE versions view: keep original file extension at end, fixes #2769
2017-07-02 19:12:19 +02:00
Thomas Waldmann
51458b6b58
FUSE versions view: keep original file extension at end, fixes #2769
...
some tools depend on seeing the correct file extension to operate
correctly, so put our version to the left of the file extension.
2017-07-02 19:11:24 +02:00
Marian Beermann
9827578df5
hashindex: don't pass side effect into macro
...
Py_XDECREF and friends are explicitly written to use op
only once in CPython (and other code relies on this,
Py_XDECREF(something()) is fairly common), but other
implementations don't guarantee this.
So, let's make a rule: don't pass side effects into macros, full stop.
2017-07-02 15:20:52 +02:00
Marian Beermann
336d0426db
crypto low_level: don't mutate local bytes()
...
CPython kind-of permits this (even by the docs),
other implementations don't. Allocate the result on the stack,
then copy to fresh bytes.
2017-07-02 15:19:50 +02:00
enkore
0a7c4a86d7
Merge pull request #2762 from enkore/issue/2760
...
key import: allow reading from stdin
2017-06-27 20:32:49 +02:00
Marian Beermann
29646d5b5e
key import: allow reading from stdin
2017-06-27 16:18:21 +02:00
Marian Beermann
f037e2b64f
archiver: add test for "create -" and "extract --stdout"
2017-06-27 16:06:01 +02:00
Marian Beermann
4af1142693
archiver: add test_benchmark_crud, fix bug
...
benchmark crud would just crash with a TypeError due to the missing return
2017-06-27 14:56:27 +02:00
Marian Beermann
5d60669c50
archiver: add test for debug info
2017-06-27 14:56:26 +02:00
Marian Beermann
38d601619e
archiver: add test for debug refcount-obj
2017-06-27 14:56:12 +02:00
Marian Beermann
6c67b64ab6
xattr: test split_lstring
2017-06-27 12:22:33 +02:00
Marian Beermann
78f0e5d473
archiver: add test for paperkey import, fix bug
2017-06-27 12:22:33 +02:00
Marian Beermann
7965efd5d9
version: add missing test for format_version, fix bug
2017-06-27 10:11:57 +02:00
Marian Beermann
39a09123ef
archiver: more consistent arguments formatting
2017-06-26 23:20:24 +02:00
Marian Beermann
97a76c296f
archiver: rename "filters" argument group to "Archive filters"
2017-06-26 23:10:43 +02:00
Marian Beermann
0a496c1064
archiver: define_archive_filters_group
2017-06-26 22:50:57 +02:00
Marian Beermann
0fabefdb59
archiver: define_exclusion_group to avoid repetition
2017-06-26 22:48:55 +02:00
Marian Beermann
cbeda1d8e3
archiver: more argparse cleanup, redundant options, missing metavars
2017-06-26 21:04:39 +02:00
Thomas Waldmann
89f3cab6cd
move get_limited_unpacker to helpers
...
also: move some constants to borg.constants
2017-06-25 23:36:28 +02:00
Thomas Waldmann
6c2c51939d
Manifest: use limited unpacker
2017-06-25 23:36:28 +02:00
Ed Blackman
9c5425dda8
Split up interval parsing from filtering for --keep-within
...
Fixes #2610
Parse --keep-within argument early, via new validator method interval
passed to argparse type=, so that better error messages can be given.
Also swallows ValueError stacktrace per the comment in the old code that
including it wasn't desirable.
2017-06-25 12:10:13 -04:00
Thomas Waldmann
7ebad4f803
FUSE vs. fuse
2017-06-24 01:24:14 +02:00
Thomas Waldmann
49411d1c6c
remove skipping the noatime tests on GNU/Hurd, fixes #2710
...
I recently installed GNU/Hurd 2017 and found the atime test works now.
2017-06-21 15:59:44 +02:00
Marian Beermann
771168a3af
docs: extract: move cwd note to --help
2017-06-21 00:16:25 +02:00
Marian Beermann
09d0d566a5
docs: with-lock: convert to proper admonition
2017-06-21 00:16:06 +02:00
enkore
710ca196d8
Merge pull request #2715 from enkore/f/rare-opts2
...
delete: remove short option for --cache-only
2017-06-20 21:01:23 +02:00
Marian Beermann
6e5ae6dc04
delete: remove short option for --cache-only
2017-06-20 18:13:10 +02:00
Marian Beermann
82575dbfe5
argparse cleanup
...
- action='store_true' implies default=False
- missing metavars added
- minor code formatting
2017-06-20 18:09:00 +02:00
Marian Beermann
b1747873d9
docs: various formatting fixes
2017-06-20 15:23:52 +02:00
Marian Beermann
55e1a54385
AdHocCache: avoid divison by zero
...
0.01 ~ "one tick or less". ymmv.
2017-06-18 13:32:12 +02:00
Marian Beermann
c7dda0aca9
docs: assorted formatting fixes
2017-06-18 12:12:50 +02:00
TW
7df6597fa1
Merge pull request #2654 from enkore/f/no-cache-sync
...
create: --no-cache-sync
2017-06-18 03:22:06 +02:00
Marian Beermann
125b02c5c8
docs: list: fix unintended block quote
2017-06-18 02:10:10 +02:00
Marian Beermann
4689fd0c22
cache: explain fetch_missing_csize cost
2017-06-18 02:04:31 +02:00
Marian Beermann
0462a561c1
item: explicate csize isn't memorizable
2017-06-18 02:01:28 +02:00
Marian Beermann
2cbff48fd3
AdHocCache: explicate chunk_incref assertion
2017-06-18 02:01:27 +02:00
Marian Beermann
5eeca3493b
TestAdHocCache
2017-06-18 02:01:27 +02:00
Marian Beermann
3c8257432a
cache sync: fetch_missing_csize don't check ids against empty idx
...
This is always the case if self.do_cache is False.
2017-06-18 02:01:27 +02:00
Marian Beermann
fc7c560345
AdHocCache: fix size not propagating to incref
2017-06-18 02:01:27 +02:00
Marian Beermann
8aa745ddbd
create: --no-cache-sync
2017-06-18 02:01:26 +02:00
Thomas Waldmann
726051b9d1
fix double delete in rebuild_refcounts
...
in case of the Manifest having an IntegrityError,
the entry for the manifest was already deleted.
2017-06-17 23:25:32 +02:00
Thomas Waldmann
72ef24cbc0
hashindex: implement KeyError
2017-06-17 23:25:32 +02:00
Thomas Waldmann
b7b6abca7a
hashindex: more tests for basics
...
KeyError test failing due to bug.
2017-06-17 23:17:09 +02:00
Marian Beermann
3f72790b5d
upgrade: remove short option for --inplace
2017-06-17 16:44:13 +02:00
Marian Beermann
28f944bd91
init: remove short option for --append-only
2017-06-17 16:40:56 +02:00
Marian Beermann
a04625cd13
nanorst: better inline formatting in tables
2017-06-17 12:39:26 +02:00