~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/foreign.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-06 20:45:48 UTC
  • mfrom: (4728.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091006204548-bjnc3z4k256ppimz
MutableTree.has_changes() does not require a tree parameter anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
                ).get_user_option_as_bool('dpush_strict')
306
306
        if strict is None: strict = True # default value
307
307
        if strict and source_wt is not None:
308
 
            if (source_wt.has_changes(source_wt.basis_tree())
309
 
                or len(source_wt.get_parent_ids()) > 1):
 
308
            if (source_wt.has_changes()):
310
309
                raise errors.UncommittedChanges(
311
310
                    source_wt, more='Use --no-strict to force the push.')
312
311
            if source_wt.last_revision() != source_wt.branch.last_revision():