changeset 752:bb64ad4ce982

revsets: add docstrings.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 17 Nov 2010 16:31:48 +0100
parents 5e54e333ec3d
children b218d2bb8c45
files hgsubversion/util.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -205,6 +205,9 @@ templatekeywords = {
 }
 
 def revset_fromsvn(repo, subset, x):
+    '''``fromsvn()``
+    Select changesets that originate from Subversion.
+    '''
     args = revset.getargs(x, 0, 0, "fromsvn takes no arguments")
 
     def matches(r):
@@ -214,6 +217,9 @@ def revset_fromsvn(repo, subset, x):
     return [r for r in subset if matches(r)]
 
 def revset_svnrev(repo, subset, x):
+    '''``svnrev(number)``
+    Select changesets that originate in the given Subversion revision.
+    '''
     args = revset.getargs(x, 1, 1, "svnrev takes one argument")
 
     rev = revset.getstring(args[0],