~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revfile.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-09 06:29:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050409062944-9bfcff3603682ef92598eaed
revf: new command 'last'

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
                         "       revfile add-delta BASE\n"
429
429
                         "       revfile get IDX\n"
430
430
                         "       revfile find-sha HEX\n"
431
 
                         "       revfile total-text-size\n")
 
431
                         "       revfile total-text-size\n"
 
432
                         "       revfile last\n")
432
433
        return 1
433
434
 
434
435
    if cmd == 'add':
466
467
            print idx
467
468
    elif cmd == 'total-text-size':
468
469
        print r.total_text_size()
 
470
    elif cmd == 'last':
 
471
        print len(r)-1
469
472
    else:
470
473
        sys.stderr.write("unknown command %r\n" % cmd)
471
474
        return 1