Commit Graph

4594 Commits

Author SHA1 Message Date
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 5cdd0294c0 Merge pull request #2768 from enkore/docs/no-l3toc
docs: no third level toc on command usage pages ("Description", "Examples")
2017-06-30 17:48:28 +02:00
Marian Beermann f6c3d1d2cc docs: no third level toc on command usage pages ("Description", "Examples") 2017-06-30 17:41:58 +02:00
enkore 193c1850e4 Merge pull request #2767 from enkore/issue/2462
docs: mount: add repository example
2017-06-30 11:05:47 +02:00
Marian Beermann 52f76d2cd6 docs: mount: add repository example 2017-06-30 10:54:18 +02:00
enkore 50066d75fc Merge pull request #2766 from enkore/issue/2765
docs: info: update and add examples
2017-06-29 11:52:20 +02:00
Marian Beermann 4009a764ed docs: info: update and add examples
The form of the output has changed and
new output has been added.
2017-06-29 11:49:27 +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
enkore 1f08ab4cf7 Merge pull request #2761 from enkore/f/missing-tests
archiver: add test for "create -" and "extract --stdout"
2017-06-27 18:20:03 +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
enkore c9e71672bb Merge pull request #2759 from enkore/f/missing-tests
Add some missing tests
2017-06-27 15:48:21 +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
enkore d0c1ea5935 Merge pull request #2758 from enkore/f/missing-tests
Add some missing tests
2017-06-27 14:21:23 +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
enkore 12fd244801 Merge pull request #2748 from enkore/f/cleanup-argparse2
archiver: more argparse cleanup, redundant options, missing metavars
2017-06-27 10:05:21 +02:00
TW d14711c220 Merge pull request #2749 from ThomasWaldmann/include-attic-tgz
include attic.tar.gz when installing the package
2017-06-27 02:48:27 +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 12bcccc0d6 docs: html: include group description in output 2017-06-26 23:10:12 +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
Thomas Waldmann 8aba5772b5 include attic.tar.gz when installing the package 2017-06-26 22:23:02 +02:00
Marian Beermann cbeda1d8e3 archiver: more argparse cleanup, redundant options, missing metavars 2017-06-26 21:04:39 +02:00
TW 1932fe8ea9 Merge pull request #2731 from ThomasWaldmann/limit-unpacker-manifest
Manifest: use limited unpacker
2017-06-26 01:42:11 +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
TW c83c4d633a Merge pull request #2744 from edgewood/master
Split up interval parsing and filtering for --keep-within
2017-06-25 23:28:21 +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
TW f3fc546c9d Merge pull request #2742 from htgoebel/patch-2
Vagrantfile: Fix set-up of cygwin and its sshd.
2017-06-25 17:34:06 +02:00
TW ec4958fb1c Merge pull request #2740 from ThomasWaldmann/fuse-writing
FUSE vs. fuse
2017-06-25 00:37:09 +02:00
Hartmut Goebel 045a676825 Vagrantfile: cygwin: Fix installation of pip.
cygwin is at python-3.6 now. Use version-independent `ensurepip`
to be future-proof.
2017-06-24 19:44:36 +02:00
Hartmut Goebel f962659f11 Vagrantfile: cygwin: Prepend cygwin PATH.
Otherwise crippled programs of the pre-installed MLS-OpenSSHd's path
hide the cygwin programs.
2017-06-24 19:22:39 +02:00
Hartmut Goebel 54a60c5fc8 Vagrantfile: cygwin: Fix permissions as required by sshd. 2017-06-24 17:46:20 +02:00
Hartmut Goebel b09e4eff86 Vagrantfile: cygwin: Run setup after setting PATH
Fixes #2609.
2017-06-24 17:46:20 +02:00
enkore 4714a453a8 Merge pull request #2741 from htgoebel/patch-1
Vagrantfile: Fix cygwin mirror URL.
2017-06-24 11:24:36 +02:00
Hartmut Goebel 26c92256e2 Vagrantfile: Fix cygwin mirror URL.
mirrors.kernel.org no longer offers ftp.
2017-06-24 09:14:41 +02:00
Thomas Waldmann 7ebad4f803 FUSE vs. fuse 2017-06-24 01:24:14 +02:00
enkore 4920ca3b01 Merge pull request #2737 from rugk/docs-pruneex
Include prune example in doc
2017-06-23 19:18:07 +02:00
Marian Beermann 310a9b3486 docs: prune: fix include path 2017-06-23 19:17:18 +02:00
rugk e967edad98 Include prune example in doc 2017-06-23 19:17:18 +02:00
enkore 64be888e60 Merge pull request #2736 from rugk/docs-sshrestrict
Fix typo
2017-06-23 19:12:01 +02:00
rugk 6051969df8
Fix typo 2017-06-23 16:54:02 +02:00
enkore 36d22ae240 Merge pull request #2732 from rugk/docs-sshrestrict
Simplify ssh authorized_keys file
2017-06-23 16:16:34 +02:00
rugk 5b0b4f4b00
Remove unneccessary space 2017-06-23 14:52:11 +02:00