[PATCHES] New patches for bzr.dev

Martin Pool mbp at sourcefrog.net
Thu Dec 8 07:35:51 GMT 2005


On 24 Nov 2005, Alexander Belchenko <bialix at ukr.net> 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)

> === modified file 'bzrlib/branch.py'
> --- bzrlib/branch.py	
> +++ bzrlib/branch.py	
> @@ -156,7 +156,7 @@
>  
>      def _get_nick(self):
>          cfg = self.tree_config()
> -        return cfg.get_option(u"nickname", default=self.base.split('/')[-1])
> +        return cfg.get_option(u"nickname", default=self.base.split(os.sep)[-1])
>  
>      def _set_nick(self, nick):
>          cfg = self.tree_config()

I wonder if this should split on either / or \ to allow getting the
nickname for a remote 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/20051208/8b89b927/attachment.pgp 


More information about the bazaar mailing list