##// END OF EJS Templates
minifileset: note the unsupported file pattern when raising a parse error...
Matt Harbison -
r35818:d5288b96 stable
parent child Browse files
Show More
@@ -30,7 +30,7 b' def _compile(tree):'
30 30 pl = len(p)
31 31 f = lambda n, s: n.startswith(p) and (len(n) == pl or n[pl] == '/')
32 32 return f
33 raise error.ParseError(_("unsupported file pattern"),
33 raise error.ParseError(_("unsupported file pattern: %s") % name,
34 34 hint=_('paths must be prefixed with "path:"'))
35 35 elif op == 'or':
36 36 func1 = _compile(tree[1])
@@ -18,6 +18,10 b''
18 18 # Commit small file
19 19 $ echo s > smallfile
20 20 $ echo '**.py = LF' > .hgeol
21 $ hg --config lfs.track='"size(\">1000B\")"' commit -Aqm "add small file"
22 hg: parse error: unsupported file pattern: size(">1000B")
23 (paths must be prefixed with "path:")
24 [255]
21 25 $ hg --config lfs.track='size(">1000B")' commit -Aqm "add small file"
22 26
23 27 # Commit large file
General Comments 0
You need to be logged in to leave comments. Login now