~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-29 06:02:14 UTC
  • Revision ID: mbp@sourcefrog.net-20050329060214-4b2b228dea3d37fb
Simple new 'deleted' command

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
 
340
340
 
341
341
 
 
342
def cmd_deleted():
 
343
    """List files deleted in the working tree.
 
344
 
 
345
TODO: Show files deleted since a previous revision, or between two revisions.
 
346
    """
 
347
    b = Branch('.')
 
348
    old = b.basis_tree()
 
349
    new = b.working_tree()
 
350
 
 
351
    for path, ie in old.inventory.iter_entries():
 
352
        if not new.has_id(ie.file_id):
 
353
            print path
 
354
    
 
355
 
 
356
 
342
357
def cmd_root(filename=None):
343
358
    """Print the branch root."""
344
359
    print bzrlib.branch.find_branch_root(filename)