/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: Mateusz Korniak
  • Date: 2007-07-21 13:16:33 UTC
  • mto: This revision was merged to the branch mainline in revision 248.
  • Revision ID: matkor@laptop-hp-20070721131633-t40kxs20j1q2fvvc
Context menu "Remove and delete added"
Acts like "Remove" but also deletes file locally.

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'),