/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/generate_ids.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:15:15 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7183.
  • Revision ID: jelmer@jelmer.uk-20181116231515-zqd2yn6kj8lfydyp
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
""")
30
30
 
31
31
from . import (
32
 
    errors,
33
32
    lazy_regex,
34
33
    )
35
34
from .sixish import text_type
61
60
    global _gen_file_id_suffix, _gen_file_id_serial
62
61
    if _gen_file_id_suffix is None:
63
62
        _gen_file_id_suffix = ("-%s-%s-" % (
64
 
                osutils.compact_date(time.time()), osutils.rand_chars(16))
 
63
            osutils.compact_date(time.time()), osutils.rand_chars(16))
65
64
            ).encode("ascii")
66
65
    _gen_file_id_serial += 1
67
66
    return b"%s%d" % (_gen_file_id_suffix, _gen_file_id_serial)