summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-17Increase chunk cache size to 16 MiBliw/gaindexesLars Wirzenius1-1/+1
2015-11-17Change the data structure gaindexes useLars Wirzenius1-18/+69
This should allow faster lookups
2015-11-17Simplify find_chunk_ids_by_contentLars Wirzenius1-9/+4
There's really no reason to treat the empty case specially.
2015-11-17Move _prepare_data into _load_dataLars Wirzenius1-15/+3
2015-11-17Call _prepare_data at the one place it wasn'tLars Wirzenius1-0/+1
This seems to change nothing, but I now I know _load_data can do the prep.
2015-11-17Prepare data after loading in commitLars Wirzenius1-0/+1
2015-11-17Fill in empty _data using a template dictLars Wirzenius1-2/+5
2015-11-15Prepare release 1.18.2obnam-1.18.2Lars Wirzenius4-5/+5
2015-11-15Update NEWSLars Wirzenius1-0/+2
2015-11-15adds de-translation of document repository formatJan Niggemann1-0/+18
Good to see my automated notification for additions to the manual is working :-) Cheers jan
2015-11-15Update debian/changelogLars Wirzenius1-0/+8
2015-11-15Update NEWSLars Wirzenius1-0/+12
2015-11-15Fix exclusion of subdirectory contentsLars Wirzenius1-2/+15
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.
2015-11-12Add setup.py --all-yarns (-Y) optionLars Wirzenius1-5/+9
2015-11-08Fix Green Alatross unit tests to clean upLars Wirzenius1-0/+4
Previously, each test created a temporary directory, but didn't remove it. Now it is removed.
2015-11-08Add a placeholder to document repository formatLars Wirzenius1-0/+19
2015-11-06Prepare 1.18.1 releaseobnam-1.18.1Lars Wirzenius3-2/+8
2015-11-06Make --quiet stop end-of-backup statistics to stdoutLars Wirzenius3-26/+38
2015-11-04Prepare release 1.18obnam-1.18Lars Wirzenius4-15/+20
2015-11-02Disable pylint warning that's falselly triggeredLars Wirzenius1-0/+1
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.
2015-11-02Revert "Change type checking in object serialisation"Lars Wirzenius1-3/+2
This reverts commit c69795b71aaba8bf0408b357fdec187c0202a1a8. The fix in that commit, to use isintance(foo,int) instead of type(foo)==int, is wrong. Pylint be damned.
2015-11-02Make find-all-obnam-errors not print duplicatesLars Wirzenius1-6/+13
Also, sort output by class name.
2015-11-02Avoid referring to B-trees in backup progressLars Wirzenius1-8/+10
2015-11-02Deprecate --small-files-in-btree in help textLars Wirzenius1-4/+2
2015-11-01Change type checking in object serialisationLars Wirzenius1-2/+3
Placate pylint.
2015-11-01Handle number of strings with struct.packliw/optnopLars Wirzenius1-2/+5
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.
2015-11-01Serialise dict int values speciallyLars Wirzenius1-1/+20
Dir objects are mostly integers. This encodes them specially. ./serialise-speed went from 97/s to 104/s.
2015-11-01Encode a list of strings speciallyLars Wirzenius1-6/+38
Dict keys are strings, handling them specially makes things go a bit faster. ./serialise-speed went from 71/s to 97/s.
2015-11-01Allow user to give object to serialise-speedLars Wirzenius1-9/+23
Also, make output slightly more useful.
2015-11-01Set a GADirectory's contents as one dictLars Wirzenius1-6/+4
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.
2015-11-01Allow some blob cachingLars Wirzenius1-1/+1
2015-11-01Avoid calling _require_file_existsLars Wirzenius1-2/+5
This should avoid a little overlapping work.
2015-10-27Make RepositoryFS be explicit about what it supportsLars Wirzenius2-6/+41
2015-10-25Store bags in a directory hierachyliw/bagtreeLars Wirzenius1-1/+7
Previously, they were all stored in one flat directory, resulting in millions upon millions of files in one directory.
2015-10-25setup.py: fix get_wanted_formats() not to use global configuration fileKalle Valo1-1/+2
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 $
2015-10-24Reformat code for pep8Lars Wirzenius1-2/+2
2015-10-24Reimplement scan_tree without recursionLars Wirzenius2-26/+52
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.
2015-10-20Set temporary GNUPGHOME permissionsLars Wirzenius1-0/+1
2015-10-19Update INSTALL with copyright infoLars Wirzenius1-0/+8
2015-10-19Update NEWSLars Wirzenius1-0/+3
2015-10-19Avoid storing compressed data when the tagged compressed data would be ↵Henri Sivonen1-2/+9
longer than the uncompressed data.
2015-10-19Add INSTALL and note test requirements in READMERichard Ipsum2-0/+17
2015-10-17Drop creating a $HOME during testsLars Wirzenius1-5/+0
Yarn now does that automatically.
2015-10-17Drop obsolete README.benchmarksLars Wirzenius1-79/+0
2015-10-13Output final backup summary to stdoutLars Wirzenius2-11/+18
This avoids using ttystatus, since ttystatus doesn't provide anything useful for this.
2015-10-11Update NEWSLars Wirzenius1-0/+3
2015-10-11kdirstat: Handled named pipes (fifos)Ian Campbell2-0/+15
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>
2015-10-11Update NEWSLars Wirzenius1-0/+3
2015-10-11Add extra space before in-line commentLars Wirzenius1-1/+1
2015-10-11encryption_plugin: add a gnupghome configuration optionBen Boeckel4-6/+68
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>