Patchwork [1,of,4] dagutils: fix docstrings for singleton internalize/externalize

login
register
mail settings
Submitter Mads Kiilerich
Date Aug. 31, 2014, 3:07 p.m.
Message ID <60e9ba5a82c801eb7df1.1409497627@localhost.localdomain>
Download mbox | patch
Permalink /patch/5669/
State Accepted
Headers show

Comments

Mads Kiilerich - Aug. 31, 2014, 3:07 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1408124612 -7200
#      Fri Aug 15 19:43:32 2014 +0200
# Node ID 60e9ba5a82c801eb7df118af93f5c65423deaadd
# Parent  ca6d28307d6fd64a0ff9d9504b91f07b1601dc36
dagutils: fix docstrings for singleton internalize/externalize

Patch

diff --git a/mercurial/dagutil.py b/mercurial/dagutil.py
--- a/mercurial/dagutil.py
+++ b/mercurial/dagutil.py
@@ -62,7 +62,7 @@  class basedag(object):
         raise NotImplementedError
 
     def externalize(self, ix):
-        '''return a list of (or set if given a set) of node ids'''
+        '''return a node id'''
         return self._externalize(ix)
 
     def externalizeall(self, ixs):
@@ -73,7 +73,7 @@  class basedag(object):
         return list(ids)
 
     def internalize(self, id):
-        '''return a list of (or set if given a set) of node ixs'''
+        '''return a node ix'''
         return self._internalize(id)
 
     def internalizeall(self, ids, filterunknown=False):