Paths and URLs in Branch.base ?

Martin Pool mbp at sourcefrog.net
Fri Nov 25 00:50:45 GMT 2005


On 25 Nov 2005, Robert Collins <robertc at robertcollins.net> wrote:
> On Thu, 2005-11-24 at 10:39 -0500, Aaron Bentley wrote:

> > Alexander Belchenko wrote:
> > >     * Patch #25. [Win32-specific] Default value for nick use '/' on
> > > Windows. Changed to os.sep. Probably it's arguable solution, but at this
> > > stage of development most of the code works well with os.sep internally
> > > rather than '/'-only. (modified: bzrlib/branch.py)
> > 
> > Yes, it's definitely arguable.  In fact, it's wrong for http branches
> > and sftp branches right now.  This is why I didn't use os.path.basename.
> > 
> > I thought we were going to use file URLs instead of paths anywhere where
> > we were supporting URLs.  What's the plan here?
> 
> AIUI the plan is that:
>  * The Transport layer takes URLs only.
>  * Branches live at a URL
>  * Trees take file paths (absolute or relative) only.

That sounds good to me.  The plan, as I understand it, is that we will
also use / for paths internally, evne on win32.

Perhaps Branches should have base_url and base_path properties, where
base_path raises an exception if it's not a local branch.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051125/0cb0ac0c/attachment.pgp 


More information about the bazaar mailing list