/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/commit.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-24 13:18:43 UTC
  • mto: (6973.13.5 python3-l)
  • mto: This revision was merged to the branch mainline in revision 7011.
  • Revision ID: jelmer@jelmer.uk-20180624131843-ap580ypg28d0n039
Fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
            revprops = {}
212
212
        if possible_master_transports is None:
213
213
            possible_master_transports = []
214
 
        if (not 'branch-nick' in revprops and
 
214
        if (not u'branch-nick' in revprops and
215
215
                branch.repository._format.supports_storing_branch_nick):
216
 
            revprops['branch-nick'] = branch._get_nick(
 
216
            revprops[u'branch-nick'] = branch._get_nick(
217
217
                local,
218
218
                possible_master_transports)
219
219
        if authors is not None:
220
 
            if 'author' in revprops or 'authors' in revprops:
 
220
            if u'author' in revprops or u'authors' in revprops:
221
221
                # XXX: maybe we should just accept one of them?
222
222
                raise AssertionError('author property given twice')
223
223
            if authors:
225
225
                    if '\n' in individual:
226
226
                        raise AssertionError('\\n is not a valid character '
227
227
                                'in an author identity')
228
 
                revprops['authors'] = '\n'.join(authors)
 
228
                revprops[u'authors'] = '\n'.join(authors)
229
229
        return revprops
230
230
 
231
231
    def commit(self,