Poprawione kilka literówek.
authorŁukasz Rekucki <lrekucki@gmail.com>
Wed, 30 Sep 2009 14:19:41 +0000 (16:19 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Wed, 30 Sep 2009 14:19:41 +0000 (16:19 +0200)
apps/api/handlers/library_handlers.py
lib/wlrepo/mercurial_backend/__init__.py

index eff5ada..39177f5 100644 (file)
@@ -517,12 +517,12 @@ class MergeHandler(BaseHandler):
         if not changed:
             return response.SuccessNoContent().django_response()
 
-        new_udoc = udoc.latest()
+        nudoc = udoc.latest()
 
         return response.SuccessAllOk().django_response({
-            "name": udoc.id,
+            "name": nudoc.id,
             "parent_user_resivion": udoc.revision,
             "parent_revision": doc.revision,
-            "revision": ndoc.revision,
-            'timestamp': ndoc.revision.timestamp,
+            "revision": nudoc.revision,
+            'timestamp': nudoc.revision.timestamp,
         })
index 6dd3c11..8b5849c 100644 (file)
@@ -72,7 +72,7 @@ class MercurialRevision(wlrepo.Revision):
         a = self._changectx.ancestor(other._changectx)       
         return (a.branch() == self._changectx.branch())
 
-    def children(self):
+    def has_children(self):
         return bool(self._library._hgrepo.changelog.children(self.hgrev()))
 
     def merge_with(self, other, user, message):