~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

(abentley) Use colocated branch names as nicknames. (Aaron Bentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1482
1482
        value = self._get_explicit_nickname()
1483
1483
        if value is not None:
1484
1484
            return value
 
1485
        if self.branch.name:
 
1486
            return self.branch.name
1485
1487
        return urlutils.unescape(self.branch.base.split('/')[-2])
1486
1488
 
1487
1489
    def has_explicit_nickname(self):