Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgemail: handle unknown revision error

Changeset 7bd38ef54b19

Parent 356db3b1f6e2

by Yuya Nishihara

Changes to one file · Browse files at 7bd38ef54b19 Showing diff from parent 356db3b1f6e2 Diff from another changeset...

 
14
15
16
17
 
18
19
20
 
404
405
406
407
 
 
 
 
 
 
 
14
15
16
 
17
18
19
20
 
404
405
406
 
407
408
409
410
411
412
@@ -14,7 +14,7 @@
 from mercurial import hg, error, extensions, util, cmdutil  from tortoisehg.util import hglib, paths  from tortoisehg.hgqt.i18n import _ -from tortoisehg.hgqt import cmdui, lexers +from tortoisehg.hgqt import cmdui, lexers, qtlib    try:   from tortoisehg.hgqt.hgemail_ui import Ui_EmailDialog @@ -404,4 +404,9 @@
  revs = opts.get('rev')     repo = hg.repository(ui, paths.find_root()) - return EmailDialog(repo.ui, repo, revs) + + try: + return EmailDialog(repo.ui, repo, revs) + except error.RepoLookupError, e: + qtlib.ErrorMsgBox(_('Failed to open Email dialog'), + hglib.tounicode(e.message))