~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Merge from integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
708
708
        tree = WorkingTree.open_containing(u'.')[0]
709
709
        b = tree.branch
710
710
        # FIXME. should be tree.last_revision
711
 
        for revision_id in b.get_ancestry(b.last_revision()):
 
711
        for revision_id in b.repository.get_ancestry(b.last_revision()):
712
712
            print revision_id
713
713
 
714
714
 
1170
1170
 
1171
1171
    Note: export of tree with non-ascii filenames to zip is not supported.
1172
1172
 
1173
 
    Supported formats       Autodetected by extension
1174
 
    -----------------       -------------------------
 
1173
     Supported formats       Autodetected by extension
 
1174
     -----------------       -------------------------
1175
1175
         dir                            -
1176
1176
         tar                          .tar
1177
1177
         tbz2                    .tar.bz2, .tbz2
1393
1393
 
1394
1394
 
1395
1395
class cmd_nick(Command):
1396
 
    """\
1397
 
    Print or set the branch nickname.  
 
1396
    """Print or set the branch nickname.  
 
1397
 
1398
1398
    If unset, the tree root directory name is used as the nickname
1399
1399
    To print the current nickname, execute with no argument.  
1400
1400
    """
1421
1421
    
1422
1422
    If arguments are given, they are regular expressions that say
1423
1423
    which tests should run.
 
1424
 
 
1425
    If the global option '--no-plugins' is given, plugins are not loaded
 
1426
    before running the selftests.  This has two effects: features provided or
 
1427
    modified by plugins will not be tested, and tests provided by plugins will
 
1428
    not be run.
 
1429
 
 
1430
    examples:
 
1431
        bzr selftest ignore
 
1432
        bzr --no-plugins selftest -v
1424
1433
    """
1425
1434
    # TODO: --list should give a list of all available tests
1426
1435
 
1440
1449
 
1441
1450
    hidden = True
1442
1451
    takes_args = ['testspecs*']
1443
 
    takes_options = ['verbose', 
 
1452
    takes_options = ['verbose',
1444
1453
                     Option('one', help='stop when one test fails'),
1445
1454
                     Option('keep-output', 
1446
1455
                            help='keep output directories when tests fail'),
1547
1556
        last1 = branch1.last_revision()
1548
1557
        last2 = branch2.last_revision()
1549
1558
 
1550
 
        source = MultipleRevisionSources(branch1, branch2)
 
1559
        source = MultipleRevisionSources(branch1.repository, 
 
1560
                                         branch2.repository)
1551
1561
        
1552
1562
        base_rev_id = common_ancestor(last1, last2, source)
1553
1563