~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: John Arbash Meinel
  • Date: 2006-04-26 19:54:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060426195432-5de612237c46f96d
Updated LocalTransport so that it's base is now a URL rather than a local path. This helps consistency with all other functions. To do so, I added local_abspath() which returns the local path, and local_path_to/from_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
                           ExistingLimbo, ImmortalLimbo)
24
24
from bzrlib.inventory import InventoryEntry
25
25
from bzrlib.osutils import (file_kind, supports_executable, pathjoin, lexists,
26
 
                            delete_any)
 
26
                            delete_any, local_path_from_url)
27
27
from bzrlib.progress import DummyProgress, ProgressPhase
28
28
from bzrlib.trace import mutter, warning
29
29
import bzrlib.ui 
79
79
        self._tree.lock_write()
80
80
        try:
81
81
            control_files = self._tree._control_files
82
 
            self._limbodir = control_files.controlfilename('limbo')
 
82
            self._limbodir = local_path_from_url(
 
83
                control_files.controlfilename('limbo'))
83
84
            try:
84
85
                os.mkdir(self._limbodir)
85
86
            except OSError, e: