Patchwork [1,of,3] help: clarify quotes are needed for filesets.size expressions

login
register
mail settings
Submitter timeless
Date Sept. 21, 2016, 5:25 p.m.
Message ID <40410e96c0a2de344edd.1474478709@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/16735/
State Accepted
Headers show

Comments

timeless - Sept. 21, 2016, 5:25 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1474475617 0
#      Wed Sep 21 16:33:37 2016 +0000
# Node ID 40410e96c0a2de344edd5a25a7d996731124ee45
# Parent  285a8c3e53f2183438f0cdbc238e4ab851d0d110
# Available At https://bitbucket.org/timeless/mercurial-crew
#              hg pull https://bitbucket.org/timeless/mercurial-crew -r 40410e96c0a2
help: clarify quotes are needed for filesets.size expressions

Patch

diff -r 285a8c3e53f2 -r 40410e96c0a2 mercurial/fileset.py
--- a/mercurial/fileset.py	Tue May 03 13:36:12 2016 +0900
+++ b/mercurial/fileset.py	Wed Sep 21 16:33:37 2016 +0000
@@ -345,10 +345,10 @@ 
 def size(mctx, x):
     """File size matches the given expression. Examples:
 
-    - 1k (files from 1024 to 2047 bytes)
-    - < 20k (files less than 20480 bytes)
-    - >= .5MB (files at least 524288 bytes)
-    - 4k - 1MB (files from 4096 bytes to 1048576 bytes)
+    - size('1k') - files from 1024 to 2047 bytes
+    - size('< 20k') - files less than 20480 bytes
+    - size('>= .5MB') - files at least 524288 bytes
+    - size('4k - 1MB') - files from 4096 bytes to 1048576 bytes
     """
 
     # i18n: "size" is a keyword