~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

[merge] bzr.dev 1821

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
    from one into the other.  Once one branch has merged, the other should
401
401
    be able to pull it again.
402
402
 
403
 
    If branches have diverged, you can use 'bzr merge' to pull the text changes
404
 
    from one into the other.  Once one branch has merged, the other should
405
 
    be able to pull it again.
406
 
 
407
403
    If you want to forget your local changes and just update your branch to
408
404
    match the remote one, use pull --overwrite.
409
405
 
709
705
                                 "such access, and also support local commits."
710
706
                            ),
711
707
                     ]
 
708
    aliases = ['co']
712
709
 
713
710
    def run(self, branch_location=None, to_location=None, revision=None, basis=None,
714
711
            lightweight=False):
1702
1699
        except PointlessCommit:
1703
1700
            # FIXME: This should really happen before the file is read in;
1704
1701
            # perhaps prepare the commit; get the message; then actually commit
1705
 
            raise BzrCommandError("no changes to commit",
1706
 
                                  ["use --unchanged to commit anyhow"])
 
1702
            raise BzrCommandError("no changes to commit."
 
1703
                                  " use --unchanged to commit anyhow")
1707
1704
        except ConflictsInTree:
1708
1705
            raise BzrCommandError("Conflicts detected in working tree.  "
1709
1706
                'Use "bzr conflicts" to list, "bzr resolve FILE" to resolve.')
2328
2325
                     'show-ids',
2329
2326
                     'verbose'
2330
2327
                     ]
 
2328
    encoding_type = 'replace'
2331
2329
 
 
2330
    @display_command
2332
2331
    def run(self, other_branch=None, reverse=False, mine_only=False,
2333
2332
            theirs_only=False, log_format=None, long=False, short=False, line=False, 
2334
2333
            show_ids=False, verbose=False):
2353
2352
                    default = local_branch.get_config().log_format()
2354
2353
                    log_format = get_log_format(long=long, short=short, 
2355
2354
                                                line=line, default=default)
2356
 
                lf = log_formatter(log_format, sys.stdout,
 
2355
                lf = log_formatter(log_format,
 
2356
                                   to_file=self.outf,
2357
2357
                                   show_ids=show_ids,
2358
2358
                                   show_timezone='original')
2359
2359
                if reverse is False:
2455
2455
    # TODO: annotate directories; showing when each file was last changed
2456
2456
    # TODO: if the working copy is modified, show annotations on that 
2457
2457
    #       with new uncommitted lines marked
2458
 
    aliases = ['blame', 'praise']
 
2458
    aliases = ['ann', 'blame', 'praise']
2459
2459
    takes_args = ['filename']
2460
2460
    takes_options = [Option('all', help='show annotations on all lines'),
2461
2461
                     Option('long', help='show date in annotations'),