Merge lp:~nataliabidart/magicicada-client/use-protocol-from-wheel into lp:magicicada-client

Proposed by Natalia Bidart
Status: Merged
Approved by: Natalia Bidart
Approved revision: 1443
Merged at revision: 1443
Proposed branch: lp:~nataliabidart/magicicada-client/use-protocol-from-wheel
Merge into: lp:magicicada-client
Diff against target: 544 lines (+69/-125)
18 files modified
.bzrignore (+0/-1)
.coveragerc (+0/-27)
HACKING (+2/-6)
Makefile (+3/-15)
dependencies.txt (+0/-1)
requirements.txt (+1/-0)
ubuntuone/platform/tests/linux/test_vm.py (+3/-4)
ubuntuone/syncdaemon/action_queue.py (+12/-9)
ubuntuone/syncdaemon/hash_queue.py (+3/-8)
ubuntuone/syncdaemon/interaction_interfaces.py (+3/-5)
ubuntuone/syncdaemon/sync.py (+6/-6)
ubuntuone/syncdaemon/tests/test_action_queue.py (+7/-7)
ubuntuone/syncdaemon/tests/test_hashqueue.py (+6/-7)
ubuntuone/syncdaemon/tests/test_interaction_interfaces.py (+6/-8)
ubuntuone/syncdaemon/tests/test_localrescan.py (+2/-3)
ubuntuone/syncdaemon/tests/test_sync.py (+4/-5)
ubuntuone/syncdaemon/tests/test_vm.py (+5/-8)
ubuntuone/syncdaemon/volume_manager.py (+6/-5)
To merge this branch: bzr merge lp:~nataliabidart/magicicada-client/use-protocol-from-wheel
Reviewer Review Type Date Requested Status
Facundo Batista Approve
Review via email: mp+343270@code.launchpad.net

Commit message

- Use protocol from wheel release.
- Fix copyright headers from modified files.

To post a comment you must log in.
Revision history for this message
Facundo Batista (facundo) wrote :

Rock!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2016-10-24 20:59:39 +0000
+++ .bzrignore 2018-04-14 23:49:33 +0000
@@ -14,4 +14,3 @@
14.protocol14.protocol
15clientdefs.py15clientdefs.py
16logging.conf16logging.conf
17ubuntuone/storageprotocol
1817
=== removed file '.coveragerc'
--- .coveragerc 2010-04-30 14:30:34 +0000
+++ .coveragerc 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1# .coveragerc to control coverage.py
2[run]
3branch = True
4
5[report]
6# Regexes for lines to exclude from consideration
7exclude_lines =
8 # Have to re-enable the standard pragma
9 pragma: no cover
10
11 # Don't complain about missing debug-only code:
12 def __repr__
13 if self\.debug
14
15 # Don't complain if tests don't hit defensive assertion code:
16 raise AssertionError
17 raise NotImplementedError
18
19 # Don't complain if non-runnable code isn't run:
20 if 0:
21 if __name__ == .__main__.:
22
23ignore_errors = True
24
25omit =
26 /usr
27 tests
280
=== modified file 'HACKING'
--- HACKING 2018-03-08 18:32:01 +0000
+++ HACKING 2018-04-14 23:49:33 +0000
@@ -1,9 +1,5 @@
1In order to run tests in ubuntuone-client, you will need to have a built1In order to run tests in ubuntuone-client, you can simply bootstrap and
2version of ubuntuone-storage-protocol in a tree, or installed. You can2everything will be setup automagically:
3specify the path to a built tree with the --with-protocol option to configure,
4or autogen.sh (which calls configure after creating it).
5
6Or you can simply bootstrap and everything will happen automagically:
73
8$: sudo apt-get install make4$: sudo apt-get install make
9$: make bootstrap5$: make bootstrap
106
=== modified file 'Makefile'
--- Makefile 2018-03-25 11:12:10 +0000
+++ Makefile 2018-04-14 23:49:33 +0000
@@ -28,31 +28,19 @@
28# For further info, check http://launchpad.net/magicicada-client28# For further info, check http://launchpad.net/magicicada-client
2929
30ENV = $(CURDIR)/.env30ENV = $(CURDIR)/.env
31PROTOCOL_DIR = $(CURDIR)/.protocol
32PROTOCOL_LINK = ubuntuone/storageprotocol
3331
34deps:32deps:
35 cat dependencies.txt | sudo xargs apt-get install -y --no-install-recommends33 cat dependencies.txt | sudo xargs apt-get install -y --no-install-recommends
36 cat dependencies-devel.txt | sudo xargs apt-get install -y --no-install-recommends34 cat dependencies-devel.txt | sudo xargs apt-get install -y --no-install-recommends
3735
38$(PROTOCOL_DIR):
39 bzr branch lp:magicicada-protocol $(PROTOCOL_DIR)
40
41$(PROTOCOL_LINK): $(PROTOCOL_DIR)
42 ln -s $(PROTOCOL_DIR)/$(PROTOCOL_LINK) $(PROTOCOL_LINK)
43
44update-protocol:
45 cd $(PROTOCOL_DIR) && bzr pull && python setup.py build
46
47build:36build:
48 $(ENV)/bin/python setup.py build37 $(ENV)/bin/python setup.py build
4938
50bootstrap: deps $(PROTOCOL_DIR) $(PROTOCOL_LINK) update-protocol venv build39bootstrap: deps venv build
5140
52docker-bootstrap: clean41docker-bootstrap: clean
53 cat dependencies.txt | xargs apt-get install -y --no-install-recommends42 cat dependencies.txt | xargs apt-get install -y --no-install-recommends
54 cat dependencies-devel.txt | xargs apt-get install -y --no-install-recommends43 cat dependencies-devel.txt | xargs apt-get install -y --no-install-recommends
55 $(MAKE) $(PROTOCOL_DIR) $(PROTOCOL_LINK) update-protocol
5644
57venv: 45venv:
58 virtualenv --system-site-packages $(ENV)46 virtualenv --system-site-packages $(ENV)
@@ -65,8 +53,8 @@
65 ./run-tests53 ./run-tests
6654
67clean:55clean:
68 rm -rf build _trial_temp $(PROTOCOL_DIR) $(PROTOCOL_LINK) $(ENV)56 rm -rf build _trial_temp $(ENV)
69 find -name '*.pyc' -delete57 find -name '*.pyc' -delete
7058
71.PHONY:59.PHONY:
72 deps update-protocol bootstrap lint test clean60 deps bootstrap lint test clean
7361
=== modified file 'dependencies.txt'
--- dependencies.txt 2018-03-14 21:01:56 +0000
+++ dependencies.txt 2018-04-14 23:49:33 +0000
@@ -1,5 +1,4 @@
1gir1.2-soup-2.41gir1.2-soup-2.4
2protobuf-compiler
3python-configglue2python-configglue
4python-dirspec3python-dirspec
5python-distutils-extra4python-distutils-extra
65
=== modified file 'requirements.txt'
--- requirements.txt 2018-03-18 11:59:08 +0000
+++ requirements.txt 2018-04-14 23:49:33 +0000
@@ -1,1 +1,2 @@
1Send2Trash==1.5.01Send2Trash==1.5.0
2magicicadaprotocol==2.0
23
=== modified file 'ubuntuone/platform/tests/linux/test_vm.py'
--- ubuntuone/platform/tests/linux/test_vm.py 2016-07-30 21:58:48 +0000
+++ ubuntuone/platform/tests/linux/test_vm.py 2018-04-14 23:49:33 +0000
@@ -1,8 +1,7 @@
1# tests.platform.linux - linux platform tests1# -*- coding: utf-8 -*-
2#
3# Author: Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
4#2#
5# Copyright 2010-2012 Canonical Ltd.3# Copyright 2010-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
6#5#
7# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -33,10 +32,10 @@
33import os32import os
34import uuid33import uuid
3534
35from magicicadaprotocol import request
36from twisted.internet import defer36from twisted.internet import defer
3737
38from contrib.testing.testcase import FakeMain38from contrib.testing.testcase import FakeMain
39from ubuntuone.storageprotocol import request
40from ubuntuone.syncdaemon.tests.test_vm import (39from ubuntuone.syncdaemon.tests.test_vm import (
41 MetadataTestCase,40 MetadataTestCase,
42 BaseVolumeManagerTests,41 BaseVolumeManagerTests,
4342
=== modified file 'ubuntuone/syncdaemon/action_queue.py'
--- ubuntuone/syncdaemon/action_queue.py 2018-03-14 21:01:56 +0000
+++ ubuntuone/syncdaemon/action_queue.py 2018-04-14 23:49:33 +0000
@@ -42,20 +42,23 @@
4242
43import OpenSSL.SSL43import OpenSSL.SSL
4444
45from zope.interface import implements45from magicicadaprotocol import (
46 content_hash,
47 errors as protocol_errors,
48 protocol_pb2,
49)
50from magicicadaprotocol.client import (
51 ThrottlingStorageClient,
52 ThrottlingStorageClientFactory,
53)
54from magicicadaprotocol.context import get_ssl_context
46from twisted.internet import reactor, defer, task55from twisted.internet import reactor, defer, task
47from twisted.internet import error as twisted_errors56from twisted.internet import error as twisted_errors
48from twisted.python.failure import Failure, DefaultException57from twisted.python.failure import Failure, DefaultException
58from zope.interface import implements
4959
50from ubuntuone import clientdefs60from ubuntuone import clientdefs
51from ubuntuone.platform import platform, remove_file61from ubuntuone.platform import platform, remove_file
52from ubuntuone.storageprotocol import protocol_pb2, content_hash
53from ubuntuone.storageprotocol import errors as protocol_errors
54from ubuntuone.storageprotocol.client import (
55 ThrottlingStorageClient,
56 ThrottlingStorageClientFactory,
57)
58from ubuntuone.storageprotocol.context import get_ssl_context
59from ubuntuone.syncdaemon.interfaces import IActionQueue, IMarker62from ubuntuone.syncdaemon.interfaces import IActionQueue, IMarker
60from ubuntuone.syncdaemon.logger import mklog, TRACE63from ubuntuone.syncdaemon.logger import mklog, TRACE
61from ubuntuone.syncdaemon import config, offload_queue64from ubuntuone.syncdaemon import config, offload_queue
@@ -884,7 +887,7 @@
884887
885 def buildProtocol(self, addr):888 def buildProtocol(self, addr):
886 """Build the client and store it. Connect callbacks."""889 """Build the client and store it. Connect callbacks."""
887 # XXX: Very Important Note: within the storageprotocol project,890 # XXX: Very Important Note: within the magicicadaprotocol project,
888 # ThrottlingStorageClient.connectionMade sets self.factory.client891 # ThrottlingStorageClient.connectionMade sets self.factory.client
889 # to self *if* self.factory.client is not None.892 # to self *if* self.factory.client is not None.
890 # Since buildProcotol is called before connectionMade, the latter893 # Since buildProcotol is called before connectionMade, the latter
891894
=== modified file 'ubuntuone/syncdaemon/hash_queue.py'
--- ubuntuone/syncdaemon/hash_queue.py 2016-09-17 14:29:53 +0000
+++ ubuntuone/syncdaemon/hash_queue.py 2018-04-14 23:49:33 +0000
@@ -1,10 +1,7 @@
1# ubuntuone.syncdaemon.hash_queue - hash queues1# -*- coding: utf-8 -*-
2#
3# Authors: Facundo Batista <facundo@canonical.com>
4# Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
5# Alejandro J. Cura <alecu@canonical.com>
6#2#
7# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
8#5#
9# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -41,11 +38,9 @@
4138
42from collections import OrderedDict39from collections import OrderedDict
4340
41from magicicadaprotocol.content_hash import content_hash_factory, crc32
44from twisted.internet import reactor42from twisted.internet import reactor
4543
46from ubuntuone.storageprotocol.content_hash import \
47 content_hash_factory, crc32
48
49from ubuntuone.platform import (44from ubuntuone.platform import (
50 open_file,45 open_file,
51 stat_path,46 stat_path,
5247
=== modified file 'ubuntuone/syncdaemon/interaction_interfaces.py'
--- ubuntuone/syncdaemon/interaction_interfaces.py 2016-09-17 01:06:23 +0000
+++ ubuntuone/syncdaemon/interaction_interfaces.py 2018-04-14 23:49:33 +0000
@@ -1,6 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2011-2015 Canonical Ltd.3# Copyright 2011-2015 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
4#5#
5# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -44,17 +45,14 @@
4445
45from functools import wraps46from functools import wraps
4647
48from magicicadaprotocol import request
47from twisted.internet import defer49from twisted.internet import defer
4850
49from ubuntuone.networkstate import NetworkManagerState51from ubuntuone.networkstate import NetworkManagerState
50try:52from ubuntuone.networkstate.networkstates import ONLINE
51 from ubuntuone.networkstate.networkstates import ONLINE
52except ImportError:
53 from ubuntuone.networkstate import ONLINE
5453
55from ubuntuone.logger import log_call54from ubuntuone.logger import log_call
56from ubuntuone.platform import ExternalInterface55from ubuntuone.platform import ExternalInterface
57from ubuntuone.storageprotocol import request
58from ubuntuone.syncdaemon import config56from ubuntuone.syncdaemon import config
59from ubuntuone.syncdaemon.action_queue import Download, Upload57from ubuntuone.syncdaemon.action_queue import Download, Upload
60from ubuntuone.syncdaemon.interfaces import IMarker58from ubuntuone.syncdaemon.interfaces import IMarker
6159
=== modified file 'ubuntuone/syncdaemon/sync.py'
--- ubuntuone/syncdaemon/sync.py 2018-03-09 09:11:05 +0000
+++ ubuntuone/syncdaemon/sync.py 2018-04-14 23:49:33 +0000
@@ -1,7 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
5#5#
6# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
7# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -31,15 +31,15 @@
3131
32from __future__ import with_statement32from __future__ import with_statement
3333
34import logging
34import os35import os
35import logging36import sys
36from operator import attrgetter37from operator import attrgetter
37import sys38
39from magicicadaprotocol import delta
3840
39from ubuntuone.syncdaemon.marker import MDMarker41from ubuntuone.syncdaemon.marker import MDMarker
40from ubuntuone.storageprotocol import delta42from ubuntuone.syncdaemon.fsm.fsm import StateMachineRunner, StateMachine
41from ubuntuone.syncdaemon.fsm.fsm import \
42 StateMachineRunner, StateMachine
43from ubuntuone.syncdaemon import u1fsfsm43from ubuntuone.syncdaemon import u1fsfsm
44from ubuntuone.syncdaemon.logger import DebugCapture44from ubuntuone.syncdaemon.logger import DebugCapture
45from ubuntuone.syncdaemon.filesystem_manager import (45from ubuntuone.syncdaemon.filesystem_manager import (
4646
=== modified file 'ubuntuone/syncdaemon/tests/test_action_queue.py'
--- ubuntuone/syncdaemon/tests/test_action_queue.py 2018-03-14 21:01:56 +0000
+++ ubuntuone/syncdaemon/tests/test_action_queue.py 2018-04-14 23:49:33 +0000
@@ -45,6 +45,13 @@
4545
46import OpenSSL.SSL46import OpenSSL.SSL
4747
48from magicicadaprotocol import (
49 client,
50 content_hash,
51 errors,
52 protocol_pb2,
53 request,
54)
48from mocker import Mocker, MockerTestCase, ANY, expect55from mocker import Mocker, MockerTestCase, ANY, expect
49from twisted.internet import defer, reactor56from twisted.internet import defer, reactor
50from twisted.internet import error as twisted_error57from twisted.internet import error as twisted_error
@@ -65,13 +72,6 @@
65from ubuntuone.devtools.testcases import skipTest72from ubuntuone.devtools.testcases import skipTest
66from ubuntuone import logger, clientdefs73from ubuntuone import logger, clientdefs
67from ubuntuone.platform import open_file, platform, path_exists74from ubuntuone.platform import open_file, platform, path_exists
68from ubuntuone.storageprotocol import (
69 client,
70 content_hash,
71 errors,
72 protocol_pb2,
73 request,
74)
75from ubuntuone.syncdaemon import interfaces, config75from ubuntuone.syncdaemon import interfaces, config
76from ubuntuone.syncdaemon import action_queue76from ubuntuone.syncdaemon import action_queue
77from ubuntuone.syncdaemon.action_queue import (77from ubuntuone.syncdaemon.action_queue import (
7878
=== modified file 'ubuntuone/syncdaemon/tests/test_hashqueue.py'
--- ubuntuone/syncdaemon/tests/test_hashqueue.py 2016-09-17 14:29:53 +0000
+++ ubuntuone/syncdaemon/tests/test_hashqueue.py 2018-04-14 23:49:33 +0000
@@ -1,8 +1,7 @@
1#1# -*- coding: utf-8 -*-
2# Authors: Facundo Batista <facundo@canonical.com>
3# Alejandro J. Cura <alecu@canonical.com>
4#2#
5# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
6#5#
7# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -32,13 +31,14 @@
3231
33from __future__ import with_statement32from __future__ import with_statement
3433
34import logging
35import os35import os
36import random36import random
37import threading
37import time38import time
38import logging
39import threading
40
41from StringIO import StringIO39from StringIO import StringIO
40
41from magicicadaprotocol.content_hash import content_hash_factory, crc32
42from twisted.trial.unittest import TestCase as TwistedTestCase42from twisted.trial.unittest import TestCase as TwistedTestCase
43from twisted.internet import defer, reactor43from twisted.internet import defer, reactor
44from ubuntuone.devtools.handlers import MementoHandler44from ubuntuone.devtools.handlers import MementoHandler
@@ -48,7 +48,6 @@
48from ubuntuone.platform import open_file, stat_path48from ubuntuone.platform import open_file, stat_path
49from ubuntuone.syncdaemon import hash_queue49from ubuntuone.syncdaemon import hash_queue
50from ubuntuone.syncdaemon.hash_queue import HASHQUEUE_DELAY50from ubuntuone.syncdaemon.hash_queue import HASHQUEUE_DELAY
51from ubuntuone.storageprotocol.content_hash import content_hash_factory, crc32
5251
53FAKE_TIMESTAMP = 152FAKE_TIMESTAMP = 1
5453
5554
=== modified file 'ubuntuone/syncdaemon/tests/test_interaction_interfaces.py'
--- ubuntuone/syncdaemon/tests/test_interaction_interfaces.py 2016-09-17 01:06:23 +0000
+++ ubuntuone/syncdaemon/tests/test_interaction_interfaces.py 2018-04-14 23:49:33 +0000
@@ -1,6 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2011-2015 Canonical Ltd.3# Copyright 2011-2015 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
4#5#
5# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -31,15 +32,9 @@
31import logging32import logging
32import os33import os
3334
35from magicicadaprotocol.protocol_pb2 import AccountInfo
34from twisted.internet import defer36from twisted.internet import defer
35from ubuntuone.devtools.handlers import MementoHandler37from ubuntuone.devtools.handlers import MementoHandler
36try:
37 from ubuntuone.networkstate.networkstates import ONLINE
38except ImportError:
39 from ubuntuone.networkstate import ONLINE
40from ubuntuone.platform.tests.ipc.test_perspective_broker import (
41 FakeNetworkManagerState,
42)
4338
44from contrib.testing.testcase import (39from contrib.testing.testcase import (
45 FAKED_CREDENTIALS,40 FAKED_CREDENTIALS,
@@ -50,8 +45,11 @@
50 FakeMainTestCase,45 FakeMainTestCase,
51 skipIfOS,46 skipIfOS,
52)47)
48from ubuntuone.networkstate.networkstates import ONLINE
53from ubuntuone.platform import make_dir, make_link49from ubuntuone.platform import make_dir, make_link
54from ubuntuone.storageprotocol.protocol_pb2 import AccountInfo50from ubuntuone.platform.tests.ipc.test_perspective_broker import (
51 FakeNetworkManagerState,
52)
55from ubuntuone.syncdaemon import (53from ubuntuone.syncdaemon import (
56 config,54 config,
57 interaction_interfaces,55 interaction_interfaces,
5856
=== modified file 'ubuntuone/syncdaemon/tests/test_localrescan.py'
--- ubuntuone/syncdaemon/tests/test_localrescan.py 2018-03-08 19:39:13 +0000
+++ ubuntuone/syncdaemon/tests/test_localrescan.py 2018-04-14 23:49:33 +0000
@@ -1,6 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
4#5#
5# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -34,6 +35,7 @@
34import os35import os
35import uuid36import uuid
3637
38from magicicadaprotocol import content_hash as storage_hash, volumes
37from twisted.internet import defer, reactor39from twisted.internet import defer, reactor
38from ubuntuone.devtools.handlers import MementoHandler40from ubuntuone.devtools.handlers import MementoHandler
39from ubuntuone.devtools.testcases import skipIfOS41from ubuntuone.devtools.testcases import skipIfOS
@@ -62,9 +64,6 @@
62)64)
63from ubuntuone.syncdaemon.marker import MDMarker65from ubuntuone.syncdaemon.marker import MDMarker
64from ubuntuone.syncdaemon.tritcask import Tritcask66from ubuntuone.syncdaemon.tritcask import Tritcask
65from ubuntuone.storageprotocol import (
66 content_hash as storage_hash, volumes
67)
68from ubuntuone.syncdaemon.volume_manager import (67from ubuntuone.syncdaemon.volume_manager import (
69 ACCESS_LEVEL_RO,68 ACCESS_LEVEL_RO,
70 ACCESS_LEVEL_RW,69 ACCESS_LEVEL_RW,
7170
=== modified file 'ubuntuone/syncdaemon/tests/test_sync.py'
--- ubuntuone/syncdaemon/tests/test_sync.py 2018-03-09 09:11:05 +0000
+++ ubuntuone/syncdaemon/tests/test_sync.py 2018-04-14 23:49:33 +0000
@@ -1,7 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
5#5#
6# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
7# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -39,8 +39,11 @@
39import unittest39import unittest
40import uuid40import uuid
4141
42from magicicadaprotocol import delta
43from magicicadaprotocol.request import ROOT
42from twisted.internet import defer44from twisted.internet import defer
43from twisted.python.failure import Failure45from twisted.python.failure import Failure
46from ubuntuone.devtools.handlers import MementoHandler
44from ubuntuone.devtools.testcases import skipIfOS47from ubuntuone.devtools.testcases import skipIfOS
4548
46from contrib.testing.testcase import (49from contrib.testing.testcase import (
@@ -49,8 +52,6 @@
49 BaseTwistedTestCase,52 BaseTwistedTestCase,
50 Listener,53 Listener,
51)54)
52
53from ubuntuone.devtools.handlers import MementoHandler
54from ubuntuone.platform import (55from ubuntuone.platform import (
55 make_dir,56 make_dir,
56 open_file,57 open_file,
@@ -63,8 +64,6 @@
63from ubuntuone.syncdaemon.sync import FSKey, Sync, SyncStateMachineRunner64from ubuntuone.syncdaemon.sync import FSKey, Sync, SyncStateMachineRunner
64from ubuntuone.syncdaemon.volume_manager import Share65from ubuntuone.syncdaemon.volume_manager import Share
65from ubuntuone.syncdaemon.event_queue import EventQueue, EVENTS66from ubuntuone.syncdaemon.event_queue import EventQueue, EVENTS
66from ubuntuone.storageprotocol.request import ROOT
67from ubuntuone.storageprotocol import delta
68from ubuntuone.syncdaemon.marker import MDMarker67from ubuntuone.syncdaemon.marker import MDMarker
6968
7069
7170
=== modified file 'ubuntuone/syncdaemon/tests/test_vm.py'
--- ubuntuone/syncdaemon/tests/test_vm.py 2016-06-04 21:14:35 +0000
+++ ubuntuone/syncdaemon/tests/test_vm.py 2018-04-14 23:49:33 +0000
@@ -1,8 +1,7 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2#2#
3# Author: Guillermo Gonzalez <guillermo.gonzalez@canonical.com>
4#
5# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
6#5#
7# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -40,16 +39,14 @@
40import sys39import sys
41import uuid40import uuid
4241
42from magicicadaprotocol import volumes, request
43from magicicadaprotocol.client import ListShares
44from magicicadaprotocol.sharersp import NotifyShareHolder, ShareResponse
45
43from mocker import Mocker, MATCH46from mocker import Mocker, MATCH
44from twisted.internet import defer, reactor47from twisted.internet import defer, reactor
45from ubuntuone.devtools.handlers import MementoHandler48from ubuntuone.devtools.handlers import MementoHandler
46from ubuntuone.devtools.testcases import skipIfOS49from ubuntuone.devtools.testcases import skipIfOS
47from ubuntuone.storageprotocol import volumes, request
48from ubuntuone.storageprotocol.client import ListShares
49from ubuntuone.storageprotocol.sharersp import (
50 NotifyShareHolder,
51 ShareResponse,
52)
5350
54from contrib.testing.testcase import (51from contrib.testing.testcase import (
55 BaseTwistedTestCase,52 BaseTwistedTestCase,
5653
=== modified file 'ubuntuone/syncdaemon/volume_manager.py'
--- ubuntuone/syncdaemon/volume_manager.py 2016-06-01 21:38:23 +0000
+++ ubuntuone/syncdaemon/volume_manager.py 2018-04-14 23:49:33 +0000
@@ -1,6 +1,7 @@
1# ubuntuone.syncdaemon.volume_manager - manages volumes1# -*- coding: utf-8 -*-
2#2#
3# Copyright 2009-2012 Canonical Ltd.3# Copyright 2009-2012 Canonical Ltd.
4# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
4#5#
5# This program is free software: you can redistribute it and/or modify it6# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published7# under the terms of the GNU General Public License version 3, as published
@@ -41,14 +42,14 @@
4142
42from itertools import ifilter43from itertools import ifilter
4344
44from twisted.internet import defer45from magicicadaprotocol import request
45from ubuntuone.platform import expand_user46from magicicadaprotocol.volumes import (
46from ubuntuone.storageprotocol import request
47from ubuntuone.storageprotocol.volumes import (
48 ShareVolume,47 ShareVolume,
49 UDFVolume,48 UDFVolume,
50 RootVolume,49 RootVolume,
51)50)
51from twisted.internet import defer
52from ubuntuone.platform import expand_user
5253
53from ubuntuone.syncdaemon.marker import MDMarker54from ubuntuone.syncdaemon.marker import MDMarker
54from ubuntuone.syncdaemon.interfaces import IMarker55from ubuntuone.syncdaemon.interfaces import IMarker

Subscribers

People subscribed via source and target branches

to all changes: