/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/info_helper.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-30 10:21:43 UTC
  • Revision ID: jelmer@samba.org-20060930102143-c0ef64d6ca860c21
Merge some files from Olive and bzr-gtk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import bzrlib.osutils as osutils
24
24
 
25
 
from bzrlib.info import _repo_rel_url
 
25
from bzrlib.info import _repo_relpath
26
26
from bzrlib.missing import find_unmerged
27
27
 
28
28
def get_location_info(repository, branch=None, working=None):
41
41
            if repository.is_shared():
42
42
                # lightweight checkout of branch in shared repository
43
43
                ret['sharedrepo'] = repository_path
44
 
                ret['repobranch'] = _repo_rel_url(repository_path, branch_path)
 
44
                ret['repobranch'] = _repo_relpath(repository_path, branch_path)
45
45
            else:
46
46
                # lightweight checkout of standalone branch
47
47
                ret['cobranch'] = branch_path
48
48
        elif repository.is_shared():
49
49
            # branch with tree inside shared repository
50
50
            ret['sharedrepo'] = repository_path
51
 
            ret['repoco'] = _repo_rel_url(repository_path, branch_path)
 
51
            ret['repoco'] = _repo_relpath(repository_path, branch_path)
52
52
        elif branch.get_bound_location():
53
53
            # normal checkout
54
54
            ret['coroot'] = working_path
61
61
        if repository.is_shared():
62
62
            # branch is part of shared repository
63
63
            ret['sharedrepo'] = repository_path
64
 
            ret['repobranch'] = _repo_rel_url(repository_path, branch_path)
 
64
            ret['repobranch'] = _repo_relpath(repository_path, branch_path)
65
65
        else:
66
66
            # standalone branch
67
67
            ret['branchroot'] = branch_path