Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This should allow faster lookups
|
|
There's really no reason to treat the empty case specially.
|
|
|
|
This seems to change nothing, but I now I know _load_data can do the prep.
|
|
|
|
|
|
|
|
|
|
Good to see my automated notification for additions to the manual is working :-)
Cheers
jan
|
|
|
|
|
|
This fixes a bug where --exclude-caches fails to correctly exclude
things. The problem was that scan_tree would scan through a
subdirectory, even when the directory itself should be excluded.
|
|
|
|
Previously, each test created a temporary directory, but didn't remove
it. Now it is removed.
|
|
|
|
|
|
|
|
|
|
As usual, I don't want to disable it in the code, where it's a
distraction. I'd rather disable it globally for the project and go
without a possible benefit. For this warning, it's a really, really
unimportant warning.
|
|
This reverts commit c69795b71aaba8bf0408b357fdec187c0202a1a8.
The fix in that commit, to use isintance(foo,int) instead of
type(foo)==int, is wrong. Pylint be damned.
|
|
Also, sort output by class name.
|
|
|
|
|
|
Placate pylint.
|
|
This avoids a bit of extra parsing. It limits us to lists of
2**64-1 items, but I think we can live with that.
|
|
Dir objects are mostly integers. This encodes them specially.
./serialise-speed went from 97/s to 104/s.
|
|
Dict keys are strings, handling them specially makes things go
a bit faster. ./serialise-speed went from 71/s to 97/s.
|
|
Also, make output slightly more useful.
|
|
We store on disk a dict that is the same dict we keep in memory.
Previously we were unpacking the from-disk dict and setting each item
individually in a new dict, resulting an identical dict, and some CPU
time being spent. This should speed things up a bit.
|
|
|
|
This should avoid a little overlapping work.
|
|
|
|
Previously, they were all stored in one flat directory,
resulting in millions upon millions of files in one directory.
|
|
When I tried to run unit tests it failed because of permission access:
$ ./check
run unit tests
Running test 650/650: test_updates_subdirectory_of_persistent_directory
OK
436 excluded statements
42 excluded modules
Time: 2.6 s
ERROR:root:Command failed: ./obnam list-formats
CRITICAL:root:Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 182, in _run
self.setup_logging()
File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 408, in setup_logging
delay=False)
File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 58, in __init__
*args, **kwargs)
File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 65, in _open
return logging.handlers.RotatingFileHandler._open(self)
File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/tmp/obnam.log'
This was because my global configuration had a log file configured and it was not accessible to a normal user:
$ grep '^log:' /etc/obnam.conf
log: /var/tmp/obnam.log
$ ls -l /var/tmp/obnam.log
-rw------- 1 root root 24112886 Oct 25 08:58 /var/tmp/obnam.log
$
|
|
|
|
Previously, scan_tree would, when encountering a very deep directory
tree, crash due to Python's maximal stack depth limit. To avoid that,
avoid recursion and use an explicit list of unprocessed items.
|
|
|
|
|
|
|
|
longer than the uncompressed data.
|
|
|
|
Yarn now does that automatically.
|
|
|
|
This avoids using ttystatus, since ttystatus doesn't provide anything
useful for this.
|
|
|
|
For some reason this was missing from the mode_str lookup, it is the only type
listed on
https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt
which wasn't handled.
For unknown file types emit a commented "#UNHANDLED ..." line rather than
crashing with a backtrace.
Add a yarn for this scenario, although I've not been able to run it due to
"ASSUMING extended attributes are allowed for users".
Real world use has been tested by Florian Geyer,
http://listmaster.pepperfish.net/pipermail/obnam-support-obnam.org/2015-September/003836.html
Cc: Florian Geyer <blueice@fobos.de>
|
|
|
|
|
|
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
|