Added simple interface to accept merge requests.
[redakcja.git] / lib / wlrepo / mercurial_backend / library.py
index f033fce..4c072cb 100644 (file)
@@ -98,8 +98,10 @@ class MercurialLibrary(wlrepo.Library):
     def get_revision(self, revid):
         revid = self._sanitize_string(revid)
 
-        try:
-            ctx = self._changectx(revid)
+        print "Looking up rev %r (%s)" %(revid, type(revid))
+
+        try:           
+            ctx = self._changectx( revid )
         except mercurial.error.RepoError, e:
             raise wlrepo.RevisionNotFound(revid)
 
@@ -118,7 +120,6 @@ class MercurialLibrary(wlrepo.Library):
         fulldocid += u'$doc:' + docid
         return fulldocid
 
-
     def has_revision(self, revid):
         try:
             self._hgrepo[revid]