Rev 24: Fix branch nickname generation. in http://bazaar.launchpad.net/~bzr/bzr-hg/trunk

Robert Collins robertc at robertcollins.net
Wed Jul 11 09:31:51 BST 2007


At http://bazaar.launchpad.net/~bzr/bzr-hg/trunk

------------------------------------------------------------
revno: 24
revision-id: robertc at robertcollins.net-20070711083143-fhg84pyfszi1fi2u
parent: robertc at robertcollins.net-20070711082242-d6p2dl38loovp1gy
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Wed 2007-07-11 18:31:43 +1000
message:
  Fix branch nickname generation.
modified:
  __init__.py                    __init__.py-20060531211707-2fy7rwqqcmfgf8ve-1
=== modified file '__init__.py'
--- a/__init__.py	2007-07-11 08:22:42 +0000
+++ b/__init__.py	2007-07-11 08:31:43 +0000
@@ -348,7 +348,8 @@
         self._branch = branch
 
     def get_nickname(self):
-        return basename(self._branch.base)
+        # remove the trailing / and take the basename.
+        return basename(self._branch.base[:-1])
 
 
 class HgBranch(bzrlib.branch.Branch):




More information about the bazaar-commits mailing list