TW
439c870fc0
Merge pull request #316 from anarcat/file-sizes
...
improve file size displays
2015-10-20 22:16:36 +02:00
Thomas Waldmann
3ea10f817f
vagrant: add vagrant user to fuse group for debianoid systems also
2015-10-20 22:14:33 +02:00
Antoine Beaupré
03d381c2f9
describe the current style guide in documentation
2015-10-20 14:43:49 -04:00
Antoine Beaupré
8651f87fa1
fix flake8 warnings in my recent PRs
2015-10-20 14:43:49 -04:00
Antoine Beaupré
e1b2f0f3f0
remove silenced warnings that were not triggered anyways
...
line length comes from @tw - i would prefer 80 columns personnally, but don't want to argue over that bikeshed
the 120 limit *does* trigger warnings right now, but it's better to do that than to make the problem worse for future PRs
2015-10-20 14:43:49 -04:00
Antoine Beaupré
aad6afb3e0
pep8 the whole darn helpers module
2015-10-20 13:39:21 -04:00
Thomas Waldmann
1bbbdea3ac
vagrant: produce borg.exe in /vagrant/borg and have it in PATH, so tests will find and test it
2015-10-20 19:23:47 +02:00
Antoine Beaupré
21fdc91995
clarify size tests
2015-10-20 13:04:01 -04:00
Antoine Beaupré
416e42335c
introduce variable precision
2015-10-20 13:01:39 -04:00
Antoine Beaupré
c7c1b9222b
convert to more flexible size formatters
...
those can now support both file sizes (in SI/decimal format, powers of 10) and memory sizes (in binary format, powers of 2)
tests still fail because the result is always displayed as floats
2015-10-20 13:01:14 -04:00
Antoine Beaupré
de390b1ca6
add file size tests, failing
...
the tests are failing because 1KB gets displayed as 1000 bytes, but also because higher prefixes are missing
2015-10-20 13:01:14 -04:00
Thomas Waldmann
a4f136afba
update CHANGES.rst (add issue / PR numbers)
2015-10-20 16:23:23 +02:00
Thomas Waldmann
344a25c102
update CHANGES.rst
2015-10-20 15:52:22 +02:00
TW
a4e3d14bd4
Merge pull request #313 from anarcat/docs
...
various docs fixes
2015-10-20 02:38:41 +02:00
TW
21f26988cc
Merge pull request #303 from anarcat/verbosity
...
Verbosity
2015-10-19 22:25:46 +02:00
Antoine Beaupré
de9e9d14b7
soften environment security warning to a note, and cross-ref to avoid dupe
2015-10-19 16:25:24 -04:00
Antoine Beaupré
38bde26673
remove needless double type conversion
...
i got confused and thought i was setting the environment (in which case you need to cast to str anyways, so this was wrong even then)
2015-10-19 15:47:05 -04:00
Antoine Beaupré
a3084b7174
try to fix build on py32 again
2015-10-19 14:41:02 -04:00
Antoine Beaupré
c7c02ef725
fix path to favicon
2015-10-19 12:15:39 -04:00
Antoine Beaupré
5cd5fa72f6
warn users about the environment on multi-user systems
2015-10-19 11:29:22 -04:00
Antoine Beaupré
3d906ab731
word-wrap a bullet list as paragraphs instead
...
it looks nicer that way
2015-10-19 11:17:10 -04:00
Antoine Beaupré
b122fca580
use titles instead of definitions in FAQ
...
this way the titles show up in the table of contents and we can link
to individual entries
2015-10-19 11:12:14 -04:00
Antoine Beaupré
500c2a8a20
fix warnings in docs generation
2015-10-19 11:09:28 -04:00
Antoine Beaupré
780a7d816a
remove mention of "borg" in changelog title
...
we know what we are looking at already...
also demote the attic changelog so it doesn't show in the main table
of contents.
2015-10-19 11:08:19 -04:00
anarcat
a395054bc5
Merge pull request #311 from ThomasWaldmann/fixme-argv
...
implement cmdline metadata value decoding
2015-10-19 11:05:00 -04:00
Antoine Beaupré
12d22d5940
try to fix build on py32
2015-10-19 09:10:45 -04:00
Antoine Beaupré
f9bccd1987
revert policy decision of showing all files listing only on debug
2015-10-19 09:10:19 -04:00
Antoine Beaupré
49d7c240a0
cosmetic: don't word-wrap needlessly
2015-10-19 09:10:04 -04:00
Thomas Waldmann
7d31da7914
implement cmdline metadata value decoding
...
code copied & adapted from Archive.load()
2015-10-19 12:16:28 +02:00
Thomas Waldmann
af2f1f7861
remove a fixed FIXME
...
see a few lines below, where it renames the original file to *.beforerecover before creating the repaired copy using the old name.
2015-10-19 11:57:12 +02:00
Thomas Waldmann
894546c3fe
skip the benchmarks by default, especially on travis
2015-10-19 11:47:24 +02:00
TW
79482a1c46
Merge pull request #310 from ThomasWaldmann/non-ascii-acls
...
Non ascii acls
2015-10-19 11:39:15 +02:00
TW
a7db210ee9
Merge pull request #308 from ThomasWaldmann/test-binary
...
Test binary, fixes #215
2015-10-19 10:14:20 +02:00
Antoine Beaupré
98512736e5
stats tests: vary values to possible catch errors
2015-10-18 21:13:01 -04:00
Antoine Beaupré
f48bbc3725
move defaults up in alternate implementation, use nameduple
2015-10-18 21:07:28 -04:00
Antoine Beaupré
158e6b529a
cosmetic: pep8 and io is actually just out
2015-10-18 21:06:56 -04:00
Antoine Beaupré
4c6915cce5
fix typos and remove debug code
2015-10-18 21:06:37 -04:00
Antoine Beaupré
1c0fb82b59
check for the stream --progress uses, not stdin
2015-10-18 20:54:39 -04:00
Thomas Waldmann
d602558f9d
acls (darwin): use helper functions safe_encode/safe_decode
...
also: rewrite one bytes-based function to work more similar than all other acl-processing functions.
2015-10-19 02:32:29 +02:00
Thomas Waldmann
213075e5c1
acls (freebsd): use helper functions safe_encode/safe_decode
2015-10-19 01:43:46 +02:00
Thomas Waldmann
259f8678d6
acls (linux): helper functions safe_encode/safe_decode
2015-10-19 01:40:15 +02:00
Thomas Waldmann
5a2aa7b02b
acls (linux): make tests as they should be
...
TODO: can this be done without creating a user/group "übel" with uid 666 gid 666?
2015-10-19 01:09:58 +02:00
Thomas Waldmann
e818026440
acls (linux): remove int() cast
...
it seems like the (non-numerical) name or group might get into fields[3] if the name -> uid or group -> gid mapping is unknown.
2015-10-19 00:28:53 +02:00
Thomas Waldmann
1f14d1de19
acls (linux): use surrogatescape error handling for acl_append_numeric_ids and acl_numeric_ids
...
surrogatescape will decode/encode invalid utf-8 sequences (if we do not get utf-8) in a round-tripping way.
2015-10-19 00:01:19 +02:00
Thomas Waldmann
63ed5d9949
acls (posix platforms): use surrogatescape error handling for posix_acl_use_stored_uid_gid
...
surrogatescape will decode/encode invalid utf-8 sequences (if we do not get utf-8) in a round-tripping way.
2015-10-18 23:43:24 +02:00
Thomas Waldmann
b2cffe00fe
acls (linux): use surrogatescape error handling, fix test
...
surrogatescape will decode/encode invalid utf-8 sequences (if we do not get utf-8) in a round-tripping way.
2015-10-18 23:33:29 +02:00
Thomas Waldmann
55179fe64d
acls (linux): add a test for acl_use_local_uid_gid and fix this function
...
this has never worked as intended as the function was not using the computed "fields[1]" value at all.
plus there were type issues after that was fixed.
2015-10-18 23:20:01 +02:00
Thomas Waldmann
45b04cd3c1
add non-ascii ACL test (linux)
...
still failing as the tested code does not yet work with non-ascii ACLs
2015-10-18 20:54:46 +02:00
Thomas Waldmann
723590df3d
fix borg.exe presence detection for python3.2
2015-10-18 19:18:24 +02:00
Thomas Waldmann
60cdb5f716
make archiver tests run for the python source as well as for the pyinstaller binary, fixes #215
...
if the borg.exe binary is not available in PATH, binary tests are skipped.
source tests are run without forking (for better speed, esp. on travis).
binary tests need forking the binary, of course.
for source tests, some tests check for an exception to happen.
for a forked binary, we of course can only check the exit code, which is non-zero in that case.
2015-10-18 18:48:36 +02:00