~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-30 03:56:00 UTC
  • mfrom: (3565.6.13 switch_nick)
  • Revision ID: pqm@pqm.ubuntu.com-20081030035600-ot66vjf0ctaw4guu
(mbp) switch and bind update the branch nick

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        from bzrlib import commit
182
182
        if revprops is None:
183
183
            revprops = {}
 
184
        possible_master_transports=[]
184
185
        if not 'branch-nick' in revprops:
185
 
            revprops['branch-nick'] = self.branch.nick
 
186
            revprops['branch-nick'] = self.branch._get_nick(
 
187
                possible_master_transports)
186
188
        author = kwargs.pop('author', None)
187
189
        if author is not None:
188
190
            if 'author' in revprops:
194
196
        for hook in MutableTree.hooks['start_commit']:
195
197
            hook(self)
196
198
        committed_id = commit.Commit().commit(working_tree=self,
197
 
            revprops=revprops, *args, **kwargs)
 
199
            revprops=revprops,
 
200
            possible_master_transports=possible_master_transports,
 
201
            *args, **kwargs)
198
202
        return committed_id
199
203
 
200
204
    def _gather_kinds(self, files, kinds):