~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
3235
3235
    def run(self):
3236
3236
        import bzrlib.plugin
3237
3237
        from inspect import getdoc
3238
 
        for name, plugin in bzrlib.plugin.all_plugins().items():
3239
 
            if getattr(plugin, '__path__', None) is not None:
3240
 
                print plugin.__path__[0]
3241
 
            elif getattr(plugin, '__file__', None) is not None:
3242
 
                print plugin.__file__
3243
 
            else:
3244
 
                print repr(plugin)
3245
 
                
3246
 
            d = getdoc(plugin)
 
3238
        for name, plugin in bzrlib.plugin.plugins().items():
 
3239
            print plugin.path(), "[%s]" % plugin.__version__
 
3240
            d = getdoc(plugin.module)
3247
3241
            if d:
3248
3242
                print '\t', d.split('\n')[0]
3249
3243
 
3419
3413
    --verbose will print out what is being removed.
3420
3414
    --dry-run will go through all the motions, but not actually
3421
3415
    remove anything.
3422
 
    
 
3416
 
 
3417
    If --revision is specified, uncommit revisions to leave the branch at the
 
3418
    specified revision.  For example, "bzr uncommit -r 15" will leave the
 
3419
    branch at revision 15.
 
3420
 
3423
3421
    In the future, uncommit will create a revision bundle, which can then
3424
3422
    be re-applied.
3425
3423
    """
3911
3909
                raise errors.BzrCommandError('No public branch specified or'
3912
3910
                                             ' known')
3913
3911
            base_revision_id = None
 
3912
            revision_id = None
3914
3913
            if revision is not None:
3915
3914
                if len(revision) > 2:
3916
3915
                    raise errors.BzrCommandError('bzr send takes '
3918
3917
                revision_id = revision[-1].in_history(branch).rev_id
3919
3918
                if len(revision) == 2:
3920
3919
                    base_revision_id = revision[0].in_history(branch).rev_id
3921
 
                    base_revision_id = ensure_null(base_revision_id)
3922
 
            else:
 
3920
            if revision_id is None:
3923
3921
                revision_id = branch.last_revision()
3924
 
            revision_id = ensure_null(revision_id)
3925
3922
            if revision_id == NULL_REVISION:
3926
3923
                raise errors.BzrCommandError('No revisions to submit.')
3927
3924
            if format == '4':