Merge lp:~mterry/duplicity/log-upload-events into lp:~duplicity-team/duplicity/trunk

Proposed by Kenneth Loafman
Status: Merged
Merged at revision: 528
Proposed branch: lp:~mterry/duplicity/log-upload-events
Merge into: lp:~duplicity-team/duplicity/trunk
Diff against target: None lines
To merge this branch: bzr merge lp:~mterry/duplicity/log-upload-events
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+7622@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

I think this should merge, assuming Peter's changes are not in conflict.

520. By Michael Terry

merge with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'duplicity/asyncscheduler.py'
2--- duplicity/asyncscheduler.py 2009-04-02 14:47:12 +0000
3+++ duplicity/asyncscheduler.py 2009-05-30 13:18:40 +0000
4@@ -143,12 +143,14 @@
5 # special case this to not require any platform support for
6 # threading at all
7 log.Info("%s: %s" % (self.__class__.__name__,
8- _("running task synchronously (asynchronicity disabled)")))
9+ _("running task synchronously (asynchronicity disabled)")),
10+ log.InfoCode.synchronous_upload_begin)
11
12 return self.__run_synchronously(fn, params)
13 else:
14 log.Info("%s: %s" % (self.__class__.__name__,
15- _("scheduling task for asynchronous execution")))
16+ _("scheduling task for asynchronous execution")),
17+ log.InfoCode.asynchronous_upload_begin)
18
19 return self.__run_asynchronously(fn, params)
20
21@@ -177,7 +179,8 @@
22 return ret
23
24 log.Info("%s: %s" % (self.__class__.__name__,
25- _("task completed successfully")))
26+ _("task completed successfully")),
27+ log.InfoCode.synchronous_upload_done)
28
29 return _waiter
30
31@@ -191,7 +194,8 @@
32 # late triggering the failure. this should be improved.
33 log.Info("%s: %s" % (self.__class__.__name__,
34 _("a previously scheduled task has failed; "
35- "propagating the result immediately")))
36+ "propagating the result immediately")),
37+ log.InfoCode.asynchronous_upload_done)
38 self.__waiter()
39 raise AssertionError("%s: waiter should have raised an exception; "
40 "this is a bug" % (self.__class__.__name__,))
41@@ -292,7 +296,8 @@
42 with_lock(self.__cv, _signal_failed)
43
44 log.Info("%s: %s" % (self.__class__.__name__,
45- _("task execution done (success: %s)") % succeeded))
46+ _("task execution done (success: %s)") % succeeded),
47+ log.InfoCode.asynchronous_upload_done)
48
49 def _postwork():
50 self.__curconc -= 1
51
52=== modified file 'duplicity/log.py'
53--- duplicity/log.py 2009-05-07 16:33:39 +0000
54+++ duplicity/log.py 2009-05-30 13:18:40 +0000
55@@ -86,6 +86,10 @@
56 patch_file_patching = 8
57 #file_list = 9 # 9 isn't used anymore. It corresponds to an older syntax for listing files
58 file_list = 10
59+ synchronous_upload_begin = 11
60+ asynchronous_upload_begin = 12
61+ synchronous_upload_done = 13
62+ asynchronous_upload_done = 14
63
64 def Info(s, code=InfoCode.generic, extra=None):
65 """Shortcut used for info messages (verbosity 5)."""

Subscribers

People subscribed via source and target branches

to all changes: