~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Andrew Bennetts
  • Date: 2011-03-01 08:07:49 UTC
  • mto: This revision was merged to the branch mainline in revision 5695.
  • Revision ID: andrew.bennetts@canonical.com-20110301080749-2fv6l3d4t9o7umfm
Use a more explicit method name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2194
2194
        self._ensure_real()
2195
2195
        return self._custom_format.supports_set_append_revisions_only()
2196
2196
 
2197
 
    def _native_heads_to_fetch(self):
 
2197
    def _use_default_local_heads_to_fetch(self):
2198
2198
        # If the branch format is a metadir format *and* its heads_to_fetch
2199
2199
        # implementation is not overridden vs the base class, we can use the
2200
2200
        # base class logic rather than use the heads_to_fetch RPC.  This is
2795
2795
        return self._real_branch.set_push_location(location)
2796
2796
 
2797
2797
    def heads_to_fetch(self):
2798
 
        if self._format._native_heads_to_fetch():
 
2798
        if self._format._use_default_local_heads_to_fetch():
2799
2799
            # We recognise this format, and its heads-to-fetch implementation
2800
2800
            # is the default one (tip + tags).  In this case it's cheaper to
2801
2801
            # just use the default implementation rather than a special RPC as