1. aidev
  2. my thg


Steve Borho  committed 99dd206

repoview: handle ambiguous revision errors better

  • Participants
  • Parent commits 7c4ac3d
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repoview.py

View file
 # this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-from mercurial.error import RepoError
+from mercurial import error
 from tortoisehg.util import hglib
 from tortoisehg.hgqt.qtlib import geticon
             rev = str(rev)
             rev = self.repo.changectx(rev).rev()
-        except RepoError:
+        except error.RepoError:
             self.showMessage.emit(_("Can't find revision '%s'") % rev)
+        except LookupError, e:
+            self.showMessage.emit(hglib.fromunicode(str(e)))
             idx = self.model().indexFromRev(rev)
             if idx is not None: