From: Łukasz Rekucki Date: Wed, 30 Sep 2009 14:19:41 +0000 (+0200) Subject: Poprawione kilka literówek. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c51a084ecf2fefb54ef9f74b21beff437ac9a4bb?ds=sidebyside Poprawione kilka literówek. --- diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index eff5ada0..39177f53 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -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, }) diff --git a/lib/wlrepo/mercurial_backend/__init__.py b/lib/wlrepo/mercurial_backend/__init__.py index 6dd3c11b..8b5849cc 100644 --- a/lib/wlrepo/mercurial_backend/__init__.py +++ b/lib/wlrepo/mercurial_backend/__init__.py @@ -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):