~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2008-08-15 02:45:42 UTC
  • mto: This revision was merged to the branch mainline in revision 3637.
  • Revision ID: robertc@robertcollins.net-20080815024542-leg2xenbvo883tcc
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1066
1066
class cmd_remove(Command):
1067
1067
    """Remove files or directories.
1068
1068
 
1069
 
    This makes bzr stop tracking changes to the specified files and delete them
1070
 
    if they can easily be recovered using revert. If no options or parameters
1071
 
    are given bzr will scan for files that are versioned by bzr but missing in
1072
 
    your tree and unversion them for you.
 
1069
    This makes bzr stop tracking changes to the specified files. bzr will delete
 
1070
    them if they can easily be recovered using revert. If no options or
 
1071
    parameters are given bzr will scan for files that are being tracked by bzr
 
1072
    but missing in your tree and stop tracking them for you.
1073
1073
    """
1074
1074
    takes_args = ['file*']
1075
1075
    takes_options = ['verbose',
1107
1107
                # versioned-with-no-kind.
1108
1108
                missing = []
1109
1109
                for change in tree.iter_changes(tree.basis_tree()):
1110
 
                    if change[6][1] is None:
 
1110
                    # Find paths in the working tree that have no kind:
 
1111
                    if change[1][1] is not None and change[6][1] is None:
1111
1112
                        missing.append(change[1][1])
1112
1113
                file_list = sorted(missing, reverse=True)
1113
1114
                file_deletion_strategy = 'keep'