Rev 4792: (robertc) Extend -Dhpssvfs debugging support to BzrDir._ensure_real. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Sun Nov 8 03:00:12 GMT 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4792 [merge]
revision-id: pqm at pqm.ubuntu.com-20091108030011-4ifz210jwrd3ewkv
parent: pqm at pqm.ubuntu.com-20091108021617-uqg5jxt2xx7lm4fe
parent: robertc at robertcollins.net-20091107221037-dvybtjc9k7qg6z5d
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Sun 2009-11-08 03:00:11 +0000
message:
  (robertc) Extend -Dhpssvfs debugging support to BzrDir._ensure_real.
  	(Robert Collins)
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'NEWS'
--- a/NEWS	2009-11-08 02:16:17 +0000
+++ b/NEWS	2009-11-08 03:00:11 +0000
@@ -55,6 +55,9 @@
 Testing
 *******
 
+* -Dhpssvfs will now trigger on ``RemoteBzrDir._ensure_real``, providing
+  more debugging of VFS access triggers. (Robert Collins)
+
 * KnownFailure is now signalled to ``ExtendedTestResult`` using the same
   method that Python 2.7 uses - ``addExpectedFailure``. (Robert Collins)
 

=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2009-10-28 00:12:03 +0000
+++ b/bzrlib/remote.py	2009-11-07 22:10:37 +0000
@@ -154,6 +154,10 @@
         Used before calls to self._real_bzrdir.
         """
         if not self._real_bzrdir:
+            if 'hpssvfs' in debug.debug_flags:
+                import traceback
+                warning('VFS BzrDir access triggered\n%s',
+                    ''.join(traceback.format_stack()))
             self._real_bzrdir = BzrDir.open_from_transport(
                 self.root_transport, _server_formats=False)
             self._format._network_name = \




More information about the bazaar-commits mailing list