'Upgrade git-cola settings'

def upgrade_settings(self):

    if (self.bookmarks and (not isinstance(self.bookmarks[0], dict))):
        bookmarks = [dict(name=os.path.basename(path), path=path) for path in self.bookmarks]
        self.values[u'bookmarks'] = bookmarks
    if (self.recent and (not isinstance(self.recent[0], dict))):
        recent = [dict(name=os.path.basename(path), path=path) for path in self.recent]
        self.values[u'recent'] = recent
