Rev 2202: Prevent remote branch clients from determining the 'right' mode for control files, because we don't want clients setting the mode anyway. in sftp://bazaar.launchpad.net/%7Ebzr/bzr/hpss/
Andrew Bennetts
andrew.bennetts at canonical.com
Fri Mar 30 06:44:44 BST 2007
At sftp://bazaar.launchpad.net/%7Ebzr/bzr/hpss/
------------------------------------------------------------
revno: 2202
revision-id: andrew.bennetts at canonical.com-20070330054348-h08inse3na9o7j8l
parent: andrew.bennetts at canonical.com-20070330014631-a3xragco77jx67pv
committer: Andrew Bennetts <andrew.bennetts at canonical.com>
branch nick: hpss
timestamp: Fri 2007-03-30 15:43:48 +1000
message:
Prevent remote branch clients from determining the 'right' mode for control files, because we don't want clients setting the mode anyway.
modified:
bzrlib/remote.py remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py 2007-03-29 09:08:25 +0000
+++ b/bzrlib/remote.py 2007-03-30 05:43:48 +0000
@@ -615,12 +615,18 @@
def __init__(self, bzrdir, _client):
self.bzrdir = bzrdir
self._client = _client
+ self._need_find_modes = True
# XXX: This assumes that the branch control directory is .bzr/branch,
# which isn't necessarily true.
LockableFiles.__init__(
self, bzrdir.root_transport.clone('.bzr/branch'),
'lock', lockdir.LockDir)
+ def _find_modes(self):
+ # RemoteBranches don't let the client set the mode of control files.
+ self._dir_mode = None
+ self._file_mode = None
+
def get(self, path):
"""'get' a remote path as per the LockableFiles interface.
More information about the bazaar-commits
mailing list