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

  • Committer: Martin Pool
  • Date: 2005-05-16 02:46:07 UTC
  • Revision ID: mbp@sourcefrog.net-20050516024607-a5357ba760c2f704
- fix verboseness in commit command

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    basis_inv = basis.inventory
77
77
    missing_ids = []
78
78
 
79
 
    print 'looking for changes...'
 
79
    if verbose:
 
80
        note('looking for changes...')
 
81
        
80
82
    for path, entry in work_inv.iter_entries():
81
 
        ## TODO: Cope with files that have gone missing.
82
 
 
83
83
        ## TODO: Check that the file kind has not changed from the previous
84
84
        ## revision of this file (if any).
85
85
 
99
99
            continue
100
100
 
101
101
        if not work_tree.has_id(file_id):
102
 
            note('deleted %s%s' % (path, kind_marker(entry.kind)))
 
102
            if verbose:
 
103
                print('deleted %s%s' % (path, kind_marker(entry.kind)))
103
104
            mutter("    file is missing, removing from inventory")
104
105
            missing_ids.append(file_id)
105
106
            continue
140
141
                entry.text_id = gen_file_id(entry.name)
141
142
                branch.text_store.add(content, entry.text_id)
142
143
                mutter('    stored with text_id {%s}' % entry.text_id)
143
 
                if not old_ie:
144
 
                    note('added %s' % path)
145
 
                elif (old_ie.name == entry.name
146
 
                      and old_ie.parent_id == entry.parent_id):
147
 
                    note('modified %s' % path)
148
 
                else:
149
 
                    note('renamed %s' % path)
 
144
                if verbose:
 
145
                    if not old_ie:
 
146
                        note('added %s' % path)
 
147
                    elif (old_ie.name == entry.name
 
148
                          and old_ie.parent_id == entry.parent_id):
 
149
                        note('modified %s' % path)
 
150
                    else:
 
151
                        note('renamed %s' % path)
150
152
 
151
153
 
152
154
    for file_id in missing_ids:
211
213
    ## TODO: Also calculate and store the inventory SHA1
212
214
    mutter("committing patch r%d" % (branch.revno() + 1))
213
215
 
214
 
 
215
216
    branch.append_revision(rev_id)
216
217
 
217
 
    note("commited r%d" % branch.revno())
 
218
    if verbose:
 
219
        note("commited r%d" % branch.revno())
218
220
 
219
221
 
220
222