/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/smart/bzrdir.py

  • Committer: Vincent Ladeuil
  • Date: 2010-04-15 06:47:06 UTC
  • mto: (5158.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5159.
  • Revision ID: v.ladeuil+lp@free.fr-20100415064706-gaonf6ydrgpx5fzh
Use the proper argument for the warning.

* bzrlib/mutabletree.py:
(MutableTree.warn_if_changed_or_out_of_date): Don't outsmart %.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
        """Get the relative path for repository from current_transport."""
111
111
        # the relpath of the bzrdir in the found repository gives us the
112
112
        # path segments to pop-out.
113
 
        relpath = repository.user_transport.relpath(
 
113
        relpath = repository.bzrdir.root_transport.relpath(
114
114
            current_transport.base)
115
115
        if len(relpath):
116
116
            segments = ['..'] * len(relpath.split('/'))