/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to push.py

  • Committer: Gary van der Merwe
  • Date: 2007-08-12 16:12:33 UTC
  • mto: (256.2.37 gtk)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: garyvdm@gmail.com-20070812161233-yhv1vafcxtsvpugj
Fix for bug Bug #132017 : olive no longer able to find bzrlib location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        if self.branch is not None and self.branch.get_push_location() is None:
97
97
            response = question_dialog(_('Set default push location'),
98
98
                                       _('There is no default push location set.\nSet %r as default now?') % location)
99
 
            if response == gtk.RESPONSE_OK:
 
99
            if response == gtk.REPONSE_OK:
100
100
                self.branch.set_push_location(location)
101
101
 
102
102
        try:
104
104
        except errors.DivergedBranches:
105
105
            response = question_dialog(_('Branches have been diverged'),
106
106
                                       _('You cannot push if branches have diverged.\nOverwrite?'))
107
 
            if response == gtk.RESPONSE_YES:
 
107
            if response == gtk.RESPONSE_OK:
108
108
                revs = do_push(self.branch, location=location, overwrite=True)
 
109
            return
109
110
        
110
111
        self._history.add_entry(location)
111
112
        info_dialog(_('Push successful'),