~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-26 01:50:01 UTC
  • mto: (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050826015001-d8b6e6330cb6401a
Merged from bzr.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1488
1488
            merge_type = ApplyMerge3
1489
1489
 
1490
1490
        if revision is None or len(revision) < 1:
1491
 
            base = (None, None)
 
1491
            base = [None, None]
1492
1492
            other = (branch, -1)
1493
1493
        else:
1494
1494
            if len(revision) == 1:
1518
1518
 
1519
1519
    def run(self, revision=None, no_backup=False, file_list=None):
1520
1520
        from bzrlib.merge import merge
 
1521
        from bzrlib.branch import Branch
1521
1522
        if file_list is not None:
1522
1523
            if len(file_list) == 0:
1523
1524
                raise BzrCommandError("No files specified")
1530
1531
              ignore_zero=True,
1531
1532
              backup_files=not no_backup,
1532
1533
              file_list=file_list)
 
1534
        if not file_list:
 
1535
            Branch('.').set_pending_merges([])
1533
1536
 
1534
1537
 
1535
1538
class cmd_assert_fail(Command):