/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/foreign.py

  • Committer: Parth Malwankar
  • Date: 2010-04-19 13:23:53 UTC
  • mfrom: (5165 +trunk)
  • mto: (5183.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5184.
  • Revision ID: parth.malwankar@gmail.com-20100419132353-gwp4r4srafq2i2kb
merged in trunk and moved NEWS entry to 2.2b2

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
        except NoWorkingTree:
297
297
            source_branch = Branch.open(directory)
298
298
            source_wt = None
299
 
        if strict is None:
300
 
            strict = source_branch.get_config(
301
 
                ).get_user_option_as_bool('dpush_strict')
302
 
        if strict is None: strict = True # default value
303
 
        if strict and source_wt is not None:
304
 
            if (source_wt.has_changes()):
305
 
                raise errors.UncommittedChanges(
306
 
                    source_wt, more='Use --no-strict to force the push.')
307
 
            if source_wt.last_revision() != source_wt.branch.last_revision():
308
 
                # The tree has lost sync with its branch, there is little
309
 
                # chance that the user is aware of it but he can still force
310
 
                # the push with --no-strict
311
 
                raise errors.OutOfDateTree(
312
 
                    source_wt, more='Use --no-strict to force the push.')
 
299
        if source_wt is not None:
 
300
            source_wt.warn_if_changed_or_out_of_date(
 
301
                strict, 'dpush_strict', 'Use --no-strict to force the push.')
313
302
        stored_loc = source_branch.get_push_location()
314
303
        if location is None:
315
304
            if stored_loc is None: