/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: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from __future__ import absolute_import
20
20
 
21
 
from brzlib.lazy_import import lazy_import
 
21
from breezy.lazy_import import lazy_import
22
22
lazy_import(globals(), """
23
23
import time
24
24
 
25
 
from brzlib import (
 
25
from breezy import (
26
26
    config,
27
27
    errors,
28
28
    osutils,
29
29
    )
30
30
""")
31
31
 
32
 
from brzlib import (
 
32
from breezy import (
33
33
    lazy_regex,
34
34
    )
35
35
 
48
48
    give a highly probably globally unique number. Then each call in the same
49
49
    process adds 1 to a serial number we append to that unique value.
50
50
    """
51
 
    # XXX TODO: change brzlib.add.smart_add_tree to call workingtree.add() rather
 
51
    # XXX TODO: change breezy.add.smart_add_tree to call workingtree.add() rather
52
52
    # than having to move the id randomness out of the inner loop like this.
53
53
    # XXX TODO: for the global randomness this uses we should add the thread-id
54
54
    # before the serial #.