/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

[merge] Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object
has no attribute 'get_bytes_as' exception while pulling from Launchpad
(Jean-Francois Roy, Andrew Bennetts, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2308
2308
 
2309
2309
    _see_also = ['status', 'cat']
2310
2310
    takes_args = ['path?']
2311
 
    # TODO: Take a revision or remote path and list that tree instead.
2312
2311
    takes_options = [
2313
2312
            'verbose',
2314
2313
            'revision',
2315
 
            Option('non-recursive',
2316
 
                   help='Don\'t recurse into subdirectories.'),
 
2314
            Option('recursive', short_name='R',
 
2315
                   help='Recurse into subdirectories.'),
2317
2316
            Option('from-root',
2318
2317
                   help='Print paths relative to the root of the branch.'),
2319
2318
            Option('unknown', help='Print unknown files.'),
2330
2329
            ]
2331
2330
    @display_command
2332
2331
    def run(self, revision=None, verbose=False,
2333
 
            non_recursive=False, from_root=False,
 
2332
            recursive=False, from_root=False,
2334
2333
            unknown=False, versioned=False, ignored=False,
2335
2334
            null=False, kind=None, show_ids=False, path=None):
2336
2335
 
2373
2372
        try:
2374
2373
            for fp, fc, fkind, fid, entry in tree.list_files(include_root=False):
2375
2374
                if fp.startswith(relpath):
2376
 
                    fp = osutils.pathjoin(prefix, fp[len(relpath):])
2377
 
                    if non_recursive and '/' in fp:
 
2375
                    rp = fp[len(relpath):]
 
2376
                    fp = osutils.pathjoin(prefix, rp)
 
2377
                    if not recursive and '/' in rp:
2378
2378
                        continue
2379
2379
                    if not all and not selection[fc]:
2380
2380
                        continue
3263
3263
                    bzrlib.version_string,
3264
3264
                    bzrlib._format_version_tuple(sys.version_info),
3265
3265
                    )
3266
 
        print
 
3266
            print
3267
3267
        if testspecs_list is not None:
3268
3268
            pattern = '|'.join(testspecs_list)
3269
3269
        else:
3309
3309
        finally:
3310
3310
            if benchfile is not None:
3311
3311
                benchfile.close()
3312
 
        if result:
3313
 
            note('tests passed')
3314
 
        else:
3315
 
            note('tests failed')
 
3312
        if not list_only:
 
3313
            if result:
 
3314
                note('tests passed')
 
3315
            else:
 
3316
                note('tests failed')
3316
3317
        return int(not result)
3317
3318
 
3318
3319
 
3424
3425
 
3425
3426
            bzr merge -r 81..82 ../bzr.dev
3426
3427
 
3427
 
        To apply a merge directive contained in in /tmp/merge:
 
3428
        To apply a merge directive contained in /tmp/merge:
3428
3429
 
3429
3430
            bzr merge /tmp/merge
3430
3431
    """
4593
4594
 
4594
4595
 
4595
4596
class cmd_join(Command):
4596
 
    """Combine a subtree into its containing tree.
 
4597
    """Combine a tree into its containing tree.
4597
4598
 
4598
 
    This command is for experimental use only.  It requires the target tree
4599
 
    to be in dirstate-with-subtree format, which cannot be converted into
4600
 
    earlier formats.
 
4599
    This command requires the target tree to be in a rich-root format.
4601
4600
 
4602
4601
    The TREE argument should be an independent tree, inside another tree, but
4603
4602
    not part of it.  (Such trees can be produced by "bzr split", but also by
4606
4605
    The result is a combined tree, with the subtree no longer an independant
4607
4606
    part.  This is marked as a merge of the subtree into the containing tree,
4608
4607
    and all history is preserved.
4609
 
 
4610
 
    If --reference is specified, the subtree retains its independence.  It can
4611
 
    be branched by itself, and can be part of multiple projects at the same
4612
 
    time.  But operations performed in the containing tree, such as commit
4613
 
    and merge, will recurse into the subtree.
4614
4608
    """
4615
4609
 
4616
4610
    _see_also = ['split']
4617
4611
    takes_args = ['tree']
4618
4612
    takes_options = [
4619
 
            Option('reference', help='Join by reference.'),
 
4613
            Option('reference', help='Join by reference.', hidden=True),
4620
4614
            ]
4621
 
    hidden = True
4622
4615
 
4623
4616
    def run(self, tree, reference=False):
4624
4617
        sub_tree = WorkingTree.open(tree)
4658
4651
    branch.  Commits in the top-level tree will not apply to the new subtree.
4659
4652
    """
4660
4653
 
4661
 
    # join is not un-hidden yet
4662
 
    #_see_also = ['join']
 
4654
    _see_also = ['join']
4663
4655
    takes_args = ['tree']
4664
4656
 
4665
4657
    def run(self, tree):