~jteh/trac-bzr/newDeps

« back to all changes in this revision

Viewing changes to bzrplugin/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-31 14:59:47 UTC
  • mto: This revision was merged to the branch mainline in revision 118.
  • Revision ID: jelmer@samba.org-20110831145947-0su0wylqy7t9x6ed
Fix relative paths for shared repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
    # calculate prefixed revnos in shared repository enviroment
73
73
    if branch.repository.is_shared():
74
 
        offset_path = urlutils.relative_url(branch.repository.base, branch.base)
 
74
        offset_path = urlutils.relative_url(
 
75
            branch.repository.user_transport.base,
 
76
            branch.user_transport.base).rstrip("/")
75
77
        prefix      = offset_path+','
76
78
        revnos      = map(lambda revno: prefix+revno, revnos)
77
79