fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d71151c
)
Oops #2
author
Łukasz Rekucki
<lrekucki@gmail.com>
Fri, 2 Oct 2009 11:13:27 +0000
(13:13 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Fri, 2 Oct 2009 11:13:27 +0000
(13:13 +0200)
lib/wlrepo/mercurial_backend/library.py
patch
|
blob
|
history
diff --git
a/lib/wlrepo/mercurial_backend/library.py
b/lib/wlrepo/mercurial_backend/library.py
index
ebb38d8
..
4c072cb
100644
(file)
--- 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):
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))
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)
ctx = self._changectx( revid )
except mercurial.error.RepoError, e:
raise wlrepo.RevisionNotFound(revid)