/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 errors.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:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import bzrlib.errors as errors
18
 
 
19
18
from dialog import error_dialog
20
19
 
21
20
def show_bzr_error(unbound):
50
49
        except errors.NoSuchFile:
51
50
            error_dialog(_("No diff output"),
52
51
                         _("The selected file hasn't changed."))
 
52
        except errors.NoSuchRevision:
 
53
                error_dialog(_('No such revision'),
 
54
                             _("The revision you specified doesn't exist."))
 
55
        except errors.FileExists:
 
56
                error_dialog(_('Target already exists'),
 
57
                             _("Target directory already exists. Please select another target."))
53
58
        except errors.AlreadyBranchError, errmsg:
54
59
            error_dialog(_('Directory is already a branch'),
55
60
                         _('The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.') % errmsg)