~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-17 08:27:03 UTC
  • Revision ID: mbp@sourcefrog.net-20050517082703-64750b2a0aa2983c
- fix up asking for the log for the root of a remote branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
597
597
        if filename:
598
598
            b = find_branch(filename, lock_mode='r')
599
599
            fp = b.relpath(filename)
600
 
            file_id = b.read_working_inventory().path2id(fp)
 
600
            if fp:
 
601
                file_id = b.read_working_inventory().path2id(fp)
 
602
            else:
 
603
                file_id = None  # points to branch root
601
604
        else:
602
605
            b = find_branch('.', lock_mode='r')
603
606
            file_id = None