/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-08 03:34:31 UTC
  • mfrom: (4266 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4267.
  • Revision ID: tanner@real-time.com-20090408033431-draj0u7nd9bbby53
Merge 1.14rc1 back bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
626
626
    def abort_write_group(self, suppress_errors=False):
627
627
        """Complete a write group on the decorated repository.
628
628
 
629
 
        Smart methods peform operations in a single step so this api
 
629
        Smart methods perform operations in a single step so this API
630
630
        is not really applicable except as a compatibility thunk
631
631
        for older plugins that don't use e.g. the CommitBuilder
632
632
        facility.
650
650
    def commit_write_group(self):
651
651
        """Complete a write group on the decorated repository.
652
652
 
653
 
        Smart methods peform operations in a single step so this api
 
653
        Smart methods perform operations in a single step so this API
654
654
        is not really applicable except as a compatibility thunk
655
655
        for older plugins that don't use e.g. the CommitBuilder
656
656
        facility.
959
959
    def start_write_group(self):
960
960
        """Start a write group on the decorated repository.
961
961
 
962
 
        Smart methods peform operations in a single step so this api
 
962
        Smart methods perform operations in a single step so this API
963
963
        is not really applicable except as a compatibility thunk
964
964
        for older plugins that don't use e.g. the CommitBuilder
965
965
        facility.
1002
1002
            # problem releasing the vfs-based lock.
1003
1003
            if old_mode == 'w':
1004
1004
                # Only write-locked repositories need to make a remote method
1005
 
                # call to perfom the unlock.
 
1005
                # call to perform the unlock.
1006
1006
                old_token = self._lock_token
1007
1007
                self._lock_token = None
1008
1008
                if not self._leave_lock:
1233
1233
            # in one go, and the user probably will have seen a warning about
1234
1234
            # the server being old anyhow.
1235
1235
            rg = self._get_revision_graph(None)
1236
 
            # There is an api discrepency between get_parent_map and
 
1236
            # There is an API discrepancy between get_parent_map and
1237
1237
            # get_revision_graph. Specifically, a "key:()" pair in
1238
1238
            # get_revision_graph just means a node has no parents. For
1239
1239
            # "get_parent_map" it means the node is a ghost. So fix up the
1923
1923
            self._real_branch.repository = self.repository
1924
1924
        else:
1925
1925
            self._real_branch = None
1926
 
        # Fill out expected attributes of branch for bzrlib api users.
 
1926
        # Fill out expected attributes of branch for bzrlib API users.
1927
1927
        self.base = self.bzrdir.root_transport.base
1928
1928
        self._control_files = None
1929
1929
        self._lock_mode = None
2174
2174
                    self._real_branch.unlock()
2175
2175
                if mode != 'w':
2176
2176
                    # Only write-locked branched need to make a remote method
2177
 
                    # call to perfom the unlock.
 
2177
                    # call to perform the unlock.
2178
2178
                    return
2179
2179
                if not self._lock_token:
2180
2180
                    raise AssertionError('Locked, but no token!')