~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/generate_ids.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-17 02:58:22 UTC
  • mfrom: (2249.5.20 knit_utf8_revision_ids)
  • Revision ID: pqm@pqm.ubuntu.com-20070217025822-306d98c244b53b08
(John Arbash Meinel) Clean up most internals to use utf-8 revision ids instead of Unicode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    if timestamp is None:
115
115
        timestamp = time.time()
116
116
 
117
 
    return '-'.join((user_or_email,
118
 
                    osutils.compact_date(timestamp),
119
 
                    unique_chunk))
 
117
    rev_id = u'-'.join((user_or_email,
 
118
                        osutils.compact_date(timestamp),
 
119
                        unique_chunk))
 
120
    return rev_id.encode('utf8')