~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shelf.py

  • Committer: Martin Pool
  • Date: 2011-06-14 02:21:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6001.
  • Revision ID: mbp@canonical.com-20110614022141-18hmm7s0iw3utcbj
Deprecate __contains__ on Tree and Inventory

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)