From 3669f00df3636d92c7de6fb0c7ebeac89150e5fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 2 Oct 2009 13:13:27 +0200 Subject: [PATCH] Oops #2 --- lib/wlrepo/mercurial_backend/library.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/wlrepo/mercurial_backend/library.py b/lib/wlrepo/mercurial_backend/library.py index ebb38d88..4c072cb8 100644 --- a/lib/wlrepo/mercurial_backend/library.py +++ b/lib/wlrepo/mercurial_backend/library.py @@ -96,15 +96,11 @@ class MercurialLibrary(wlrepo.Library): return self.document_for_rev(self.fulldocid(docid, user)) def get_revision(self, revid): - revid = self._sanitize_string(revid).decode('utf-8') + revid = self._sanitize_string(revid) print "Looking up rev %r (%s)" %(revid, type(revid)) - try: - # THIS IS THE MOST BRAIN-DEAD API I EVER SEEN - # WHY DO ALL THE OTHER METHODS SIMPLY - # FAIL WHEN GIVEN UNICODE, WHEN THIS WORKS ONLY!! WITH IT - + try: ctx = self._changectx( revid ) except mercurial.error.RepoError, e: raise wlrepo.RevisionNotFound(revid) -- 2.20.1