~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/foreign.py

Merge bzr.dev 4734 in preparation for NEWS updates.

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():