~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-17 12:59:55 UTC
  • mfrom: (6263.2.3 hpss-make-workingtrees)
  • Revision ID: pqm@pqm.ubuntu.com-20111117125955-yjbz106l8gkzslos
(jelmer) Add HPSS call ``Repository.make_working_trees``. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1589
1589
 
1590
1590
    def make_working_trees(self):
1591
1591
        """See Repository.make_working_trees"""
1592
 
        self._ensure_real()
1593
 
        return self._real_repository.make_working_trees()
 
1592
        path = self.bzrdir._path_for_remote_call(self._client)
 
1593
        try:
 
1594
            response = self._call('Repository.make_working_trees', path)
 
1595
        except errors.UnknownSmartMethod:
 
1596
            self._ensure_real()
 
1597
            return self._real_repository.make_working_trees()
 
1598
        if response[0] not in ('yes', 'no'):
 
1599
            raise SmartProtocolError('unexpected response code %s' % (response,))
 
1600
        return response[0] == 'yes'
1594
1601
 
1595
1602
    def refresh_data(self):
1596
1603
        """Re-read any data needed to synchronise with disk.