From patchwork Sun Dec 26 18:46:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: help: properly document the default pattern From: =?utf-8?q?Jordi_Guti=C3=A9rrez_Hermoso?= X-Patchwork-Id: 50280 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 26 Dec 2021 13:46:04 -0500 # HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1550269232 18000 # Fri Feb 15 17:20:32 2019 -0500 # Node ID e5b62cbab03e443841b23a333aac035ad3987fbf # Parent d3ec8201610485fa8bfda40771869ae67bfc6404 help: properly document the default pattern The default isn't to glob. It's relpath, which does no globbing at all. Thus most commands and options like -X/-I and hg files require `glob:` in front of them to actually do any globbing. I think long ago the default was to glob, but that hasn't been true for a long time. diff --git a/mercurial/helptext/patterns.txt b/mercurial/helptext/patterns.txt --- a/mercurial/helptext/patterns.txt +++ b/mercurial/helptext/patterns.txt @@ -1,8 +1,10 @@ Mercurial accepts several notations for identifying one or more files at a time. -By default, Mercurial treats filenames as shell-style extended glob -patterns. +By default, Mercurial treats filenames verbatim without pattern +matching, relative to the current working directory. Note that your +system shell might perform pattern matching of its own before passing +filenames into Mercurial. Alternate pattern notations must be specified explicitly.