~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-22 08:00:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050322080050-fcf2e3a320ad29d0
- new relpath command and function

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
    b.add(file_list, verbose=verbose)
176
176
 
177
177
 
 
178
def cmd_relpath(filename):
 
179
    print Branch(filename).relpath(filename)
 
180
 
 
181
 
178
182
def cmd_inventory(revision=None):
179
183
    """Show inventory of the current working copy."""
180
184
    ## TODO: Also optionally show a previous inventory
595
599
    'diff':                   [],
596
600
    'file-id':                ['filename'],
597
601
    'root':                   ['filename?'],
 
602
    'relpath':                ['filename'],
598
603
    'get-file-text':          ['text_id'],
599
604
    'get-inventory':          ['inventory_id'],
600
605
    'get-revision':           ['revision_id'],