Merge lp:~mbp/bzr/trivial-old into lp:~bzr/bzr/trunk-old

Proposed by Martin Pool
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mbp/bzr/trivial-old
Merge into: lp:~bzr/bzr/trunk-old
Diff against target: 68 lines
To merge this branch: bzr merge lp:~mbp/bzr/trivial-old
Reviewer Review Type Date Requested Status
bzr-core Pending
Review via email: mp+8255@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

At the moment -Dhpss prints tracebacks to stderr whenever it does vfs operations. I agree with the intention, but it's too much for people who're doing other work and want to just be aware of hpss operations. spiv agreed verbally. This moves it to -Dhpssvfs and also improves a message when a connection is dropped.

Revision history for this message
Vincent Ladeuil (vila) wrote :

>>>>> "martin" == Martin Pool <email address hidden> writes:

    martin> Martin Pool has proposed merging lp:~mbp/bzr/trivial into lp:bzr.
    martin> Requested reviews:
    martin> bzr-core (bzr-core)

    martin> At the moment -Dhpss prints tracebacks to stderr whenever it does
    martin> vfs operations. I agree with the intention, but it's too much
    martin> for people who're doing other work and want to just be aware of
    martin> hpss operations.

+1 !1!!!1!

    martin> spiv agreed verbally. This moves it to -Dhpssvfs and
    martin> also improves a message when a connection is dropped.

Review approve

Revision history for this message
Martin Pool (mbp) wrote :

tweaked and sent to pqm

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/help_topics/en/debug-flags.txt'
2--- bzrlib/help_topics/en/debug-flags.txt 2009-03-18 23:43:51 +0000
3+++ bzrlib/help_topics/en/debug-flags.txt 2009-07-07 04:35:14 +0000
4@@ -15,6 +15,8 @@
5 -Dhashcache Log every time a working file is read to determine its hash.
6 -Dhooks Trace hook execution.
7 -Dhpss Trace smart protocol requests and responses.
8+-Dhpssdetail More hpss details.
9+-Dhpssvfs Traceback on vfs access to Remote objects.
10 -Dhttp Trace http connections, requests and responses
11 -Dindex Trace major index operations.
12 -Dknit Trace knit operations.
13
14=== modified file 'bzrlib/remote.py'
15--- bzrlib/remote.py 2009-06-26 09:24:34 +0000
16+++ bzrlib/remote.py 2009-07-07 04:35:13 +0000
17@@ -723,7 +723,7 @@
18 invocation. If in doubt chat to the bzr network team.
19 """
20 if self._real_repository is None:
21- if 'hpss' in debug.debug_flags:
22+ if 'hpssvfs' in debug.debug_flags:
23 import traceback
24 warning('VFS Repository access triggered\n%s',
25 ''.join(traceback.format_stack()))
26
27=== modified file 'bzrlib/smart/medium.py'
28--- bzrlib/smart/medium.py 2009-06-10 03:56:49 +0000
29+++ bzrlib/smart/medium.py 2009-07-07 04:35:14 +0000
30@@ -472,7 +472,8 @@
31 if not line.endswith('\n'):
32 # end of file encountered reading from server
33 raise errors.ConnectionReset(
34- "please check connectivity and permissions")
35+ "Unexpected end of message. Please check connectivity "
36+ "and permissions, and report a bug if problems persist.")
37 return line
38
39 def _read_line(self):
40
41=== modified file 'bzrlib/smart/message.py'
42--- bzrlib/smart/message.py 2009-04-24 00:45:11 +0000
43+++ bzrlib/smart/message.py 2009-07-07 04:35:14 +0000
44@@ -283,7 +283,9 @@
45 self._protocol_decoder._get_in_buffer()[:10],
46 self._protocol_decoder.state_accept.__name__)
47 raise errors.ConnectionReset(
48- "please check connectivity and permissions")
49+ "Unexpected end of message. "
50+ "Please check connectivity and permissions, and report a bug "
51+ "if problems persist.")
52 self._protocol_decoder.accept_bytes(bytes)
53
54 def protocol_error(self, exception):
55
56=== modified file 'bzrlib/tests/test_smart_transport.py'
57--- bzrlib/tests/test_smart_transport.py 2009-07-04 08:37:34 +0000
58+++ bzrlib/tests/test_smart_transport.py 2009-07-07 04:35:14 +0000
59@@ -1507,7 +1507,8 @@
60 ex = self.assertRaises(errors.ConnectionReset,
61 response_handler.read_response_tuple)
62 self.assertEqual("Connection closed: "
63- "please check connectivity and permissions ",
64+ "Unexpected end of message. Please check connectivity "
65+ "and permissions, and report a bug if problems persist. ",
66 str(ex))
67
68 def test_server_offset_serialisation(self):