/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

  • Committer: Martin
  • Date: 2011-05-17 17:03:58 UTC
  • mfrom: (5879 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5888.
  • Revision ID: gzlist@googlemail.com-20110517170358-fonomozaw65x4od2
Merge bzr.dev to resolve release notes conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
3857
3857
 
3858
3858
    Use bzr resolve when you have fixed a problem.  See also bzr conflicts.
3859
3859
 
3860
 
    If there is no default branch set, the first merge will set it. After
3861
 
    that, you can omit the branch to use the default.  To change the
3862
 
    default, use --remember. The value will only be saved if the remote
3863
 
    location can be accessed.
 
3860
    If there is no default branch set, the first merge will set it (use
 
3861
    --no-remember to *not* set it). After that, you can omit the branch to use
 
3862
    the default.  To change the default, use --remember. The value will only be
 
3863
    saved if the remote location can be accessed.
3864
3864
 
3865
3865
    The results of the merge are placed into the destination working
3866
3866
    directory, where they can be reviewed (with bzr diff), tested, and then
3931
3931
    ]
3932
3932
 
3933
3933
    def run(self, location=None, revision=None, force=False,
3934
 
            merge_type=None, show_base=False, reprocess=None, remember=False,
 
3934
            merge_type=None, show_base=False, reprocess=None, remember=None,
3935
3935
            uncommitted=False, pull=False,
3936
3936
            directory=None,
3937
3937
            preview=False,
4114
4114
        if other_revision_id is None:
4115
4115
            other_revision_id = _mod_revision.ensure_null(
4116
4116
                other_branch.last_revision())
4117
 
        # Remember where we merge from
4118
 
        if ((remember or tree.branch.get_submit_branch() is None) and
4119
 
             user_location is not None):
 
4117
        # Remember where we merge from. We need to remember if:
 
4118
        # - user specify a location (and we don't merge from the parent
 
4119
        #   branch)
 
4120
        # - user ask to remember or there is no previous location set to merge
 
4121
        #   from and user didn't ask to *not* remember
 
4122
        if (user_location is not None
 
4123
            and ((remember
 
4124
                  or (remember is None
 
4125
                      and tree.branch.get_submit_branch() is None)))):
4120
4126
            tree.branch.set_submit_branch(other_branch.base)
4121
4127
        # Merge tags (but don't set them in the master branch yet, the user
4122
4128
        # might revert this merge).  Commit will propagate them.
4633
4639
    @display_command
4634
4640
    def run(self, verbose=False):
4635
4641
        from bzrlib import plugin
 
4642
        # Don't give writelines a generator as some codecs don't like that
4636
4643
        self.outf.writelines(
4637
 
            plugin.describe_plugins(show_paths=verbose))
 
4644
            list(plugin.describe_plugins(show_paths=verbose)))
4638
4645
 
4639
4646
 
4640
4647
class cmd_testament(Command):
6154
6161
            self.outf.write('%s %s\n' % (path, location))
6155
6162
 
6156
6163
 
 
6164
class cmd_export_pot(Command):
 
6165
    __doc__ = """Export command helps and error messages in po format."""
 
6166
 
 
6167
    hidden = True
 
6168
 
 
6169
    def run(self):
 
6170
        from bzrlib.export_pot import export_pot
 
6171
        export_pot(self.outf)
 
6172
 
 
6173
 
6157
6174
def _register_lazy_builtins():
6158
6175
    # register lazy builtins from other modules; called at startup and should
6159
6176
    # be only called once.