Commit graph

46 commits

Author SHA1 Message Date
Markus Unterwaditzer
43e594fb43 Style fixes 2015-01-24 20:20:24 +01:00
Markus Unterwaditzer
76c7f034a7 Catch IdentConflict
Fix #170
2015-01-24 16:35:03 +01:00
Markus Unterwaditzer
5ce0d97f91 Remove copyright headers 2015-01-21 13:02:30 +01:00
Markus Unterwaditzer
ce2cea130c Make status_path relative to config file 2015-01-12 20:16:10 +01:00
Markus Unterwaditzer
6f95870a48 Remove old config value style 2015-01-01 23:28:54 +01:00
Markus Unterwaditzer
fab29b4ecb Test collection creation explicitly 2015-01-01 22:01:24 +01:00
Markus Unterwaditzer
8e694a2a2f Don't test collection creation indirectly 2015-01-01 22:01:24 +01:00
Markus Unterwaditzer
e76fd29aec Unify collection creation 2015-01-01 22:01:23 +01:00
Markus Unterwaditzer
e450baf0f8 finally silence flake8 2014-12-26 10:04:51 +01:00
Markus Unterwaditzer
37cd8aa88d Ignore error (not warning) 2014-12-26 01:23:38 +01:00
Markus Unterwaditzer
cdb25d61ec Move config parsing into cli module 2014-12-26 00:58:41 +01:00
Markus Unterwaditzer
6ef330aac5 Stricter config validation 2014-12-26 00:50:15 +01:00
Markus Unterwaditzer
f2d34f4784 Create cli.tasks 2014-12-25 23:59:02 +01:00
Markus Unterwaditzer
c2ec4cd3a3 Testsuite refactoring 2014-12-21 13:58:47 +01:00
Markus Unterwaditzer
548b397dbb Fix a refactoring bug 2014-12-20 13:50:01 +01:00
Markus Unterwaditzer
14699d3195 Fix test 2014-12-20 02:30:54 +01:00
Markus Unterwaditzer
cfe252d458 Make .cli a subpackage 2014-12-20 01:59:59 +01:00
Markus Unterwaditzer
8266145443 Remove storage defaults from pair section
This feature didn't seem to be documented anyway.
2014-12-16 18:15:51 +01:00
Markus Unterwaditzer
2e2349c46d Add discover command 2014-12-16 17:20:02 +01:00
Markus Unterwaditzer
06a701bc10 Handle collections correctly
Fix #132

Passing the collections parameter used to mean that the storage should
append its value to the URL or path. This was a leaky abstraction for
the reasons explained in #132.

The new behavior removes this meaning from this parameter. Vdirsyncer
now maintains a cache of discovered collections.
2014-12-15 21:57:56 +01:00
Markus Unterwaditzer
6b199474a6 Factor out deprecated config parsing 2014-12-15 21:12:54 +01:00
Markus Unterwaditzer
d9e4a5b767 Validate section names more strictly
This avoids any problems with status files
2014-12-15 20:52:32 +01:00
Markus Unterwaditzer
ddc47c2272 --force-delete is now a flag
Conflicts:
	tests/test_cli.py
	vdirsyncer/cli.py
2014-12-15 20:46:34 +01:00
Markus Unterwaditzer
a1f2d14c05 Refactor parse_config to use fileobject 2014-12-15 20:37:23 +01:00
Markus Unterwaditzer
08c07c4be4 New config format
See #141

Basically this tries to parse config values with JSON, if that fails,
the value is interpreted as string.

I'd greatly appreciate feedback on this and #141
2014-12-02 21:03:06 +01:00
Markus Unterwaditzer
93d29972ec Add testcase 2014-10-16 21:40:49 +02:00
Markus Unterwaditzer
29d80b7be0 Stop using multiprocessing.dummy.Pool
- Custom job queue with workers based on threads.
- Collection discovery is now done in a separate thread. Due to the
  gained flexibility, we could do the sync actions in separate threads
  too?
- The processes parameter has been removed, the related new option is
  only available on the CLI.
2014-10-16 21:40:49 +02:00
Markus Unterwaditzer
2d62c8716b Continue syncing pairs if one pair crashes
Fix #121

Vdirsyncer used to exit as a whole when one pair failed to synchronize
due to connection errors. The new behavior actually tries to synchronize
other pairs before exiting with a nonzero status code. The old behavior
can be restored with the --fail-fast flag.
2014-10-08 22:03:04 +02:00
Markus Unterwaditzer
bb4939bfdb Validate general section.
Fix #100
2014-08-18 18:33:58 +02:00
Markus Unterwaditzer
8ea3b82c50 Add assertion for CLI output 2014-08-18 01:03:34 +02:00
Markus Unterwaditzer
1fff7efff5 Use name from config for representing storages 2014-08-18 00:53:05 +02:00
Markus Unterwaditzer
838e816a65 Don't influence user's homedir 2014-07-23 12:21:03 +02:00
Markus Unterwaditzer
6a63dcec81 Fix bug for --verbosity setting 2014-06-25 15:29:13 +02:00
Markus Unterwaditzer
289ac2cfac More tests 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
a6e2f23bbc Catch exceptions with decorator
This allows us to validate the exact output in the tests
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
65a845c7ca Add one more test 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
e9722ee63d Add test for simple usage 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
55ad24db3d Add storage_name parameter on storages 2014-05-27 18:37:37 +02:00
Markus Unterwaditzer
cefaf4923a Autodiscovery
Fix #11
2014-05-27 17:42:55 +02:00
Markus Unterwaditzer
c1eb55c241 Copyright and contributor stuff
Fix #60
2014-05-22 12:50:43 +02:00
Markus Unterwaditzer
63a2960c87 Add one more testcase 2014-05-02 23:49:03 +02:00
Markus Unterwaditzer
65e6397806 Flake8 2014-04-11 15:49:15 +02:00
Markus Unterwaditzer
15658b1f31 More tests and more coverage 2014-04-05 14:36:42 +02:00
Markus Unterwaditzer
d14dfcd5f8 More copyright headers
[ci skip]
2014-04-01 21:09:40 +02:00
Markus Unterwaditzer
17f9ccc895 Remove unittest inheritance 2014-03-17 19:30:39 +01:00
Markus Unterwaditzer
8db16454f8 More tests
I was bored
2014-03-13 16:22:50 +01:00