/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 bzrlib/shelf.py

  • Committer: Martin Pool
  • Date: 2011-05-20 14:46:02 UTC
  • mto: This revision was merged to the branch mainline in revision 5923.
  • Revision ID: mbp@canonical.com-20110520144602-bqli0t6dj01gl0pv
Various pyflakes import fixes.

Some modules were used for subclassing or at module load time, so there is no
point loading them lazily.

Some were not imported when they should be.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Canonical Ltd
 
1
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
18
18
import errno
19
19
import re
20
20
 
 
21
from bzrlib.lazy_import import lazy_import
 
22
lazy_import(globals(), """
21
23
from bzrlib import (
22
24
    bencode,
23
25
    errors,
26
28
    pack,
27
29
    transform,
28
30
)
 
31
""")
29
32
 
30
33
 
31
34
class ShelfCreator(object):
62
65
        """Iterable of tuples describing shelvable changes.
63
66
 
64
67
        As well as generating the tuples, this updates several members.
65
 
        Tuples may be:
 
68
        Tuples may be::
 
69
 
66
70
           ('add file', file_id, work_kind, work_path)
67
71
           ('delete file', file_id, target_kind, target_path)
68
72
           ('rename', file_id, target_path, work_path)