[PATCH 2 of 3 hglib] client: make _parserevs a static method

Idan Kamara idankk86 at gmail.com
Tue Jan 17 14:38:55 CST 2012


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1326831980 -7200
# Node ID 71da73423f0066c088d18aa23c628eb3b1a418c1
# Parent  972d069051c546f3cf810b641371a98f971a7b77
client: make _parserevs a static method

diff --git a/hglib/client.py b/hglib/client.py
--- a/hglib/client.py
+++ b/hglib/client.py
@@ -92,7 +92,8 @@
         else:
             return channel, self.server.stdout.read(length)
 
-    def _parserevs(self, splitted):
+    @staticmethod
+    def _parserevs(splitted):
         ''' splitted is a list of fields according to our rev.style, where each 6
         fields compose one revision. '''
         return [revision(*rev) for rev in util.grouper(6, splitted)]


More information about the Mercurial-devel mailing list