| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>hg locate</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="hg-locate"> |
| 12 |
<span id="hg-locate-1"></span> |
| 13 |
<h1 class="title">hg locate</h1> |
| 14 |
<h2 class="subtitle" id="locate-files-matching-specific-patterns-deprecated">locate files matching specific patterns (DEPRECATED)</h2> |
| 15 |
|
| 16 |
<div class="contents htmlonly topic" id="contents"> |
| 17 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 18 |
<ul class="simple"> |
| 19 |
<li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li> |
| 20 |
<li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li> |
| 21 |
<li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li> |
| 22 |
</ul> |
| 23 |
</div> |
| 24 |
<div class="section" id="synopsis"> |
| 25 |
<h1><a class="toc-backref" href="#contents">Synopsis</a></h1> |
| 26 |
<pre class="literal-block"> |
| 27 |
hg locate [OPTION]... [PATTERN]... |
| 28 |
</pre> |
| 29 |
</div> |
| 30 |
<div class="section" id="description"> |
| 31 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 32 |
<p>Print files under Mercurial control in the working directory whose |
| 33 |
names match the given patterns.</p> |
| 34 |
<p>By default, this command searches all directories in the working |
| 35 |
directory. To search just the current directory and its |
| 36 |
subdirectories, use "--include .".</p> |
| 37 |
<p>If no patterns are given to match, this command prints the names |
| 38 |
of all files under Mercurial control in the working directory.</p> |
| 39 |
<p>If you want to feed the output of this command into the "xargs" |
| 40 |
command, use the -0 option to both this command and "xargs". This |
| 41 |
will avoid the problem of "xargs" treating single filenames that |
| 42 |
contain whitespace as multiple filenames.</p> |
| 43 |
<p>See <a class="reference external" href="hg-files.html"><tt class="docutils literal">hg help files</tt></a> for a more versatile command.</p> |
| 44 |
<p>Returns 0 if a match is found, 1 otherwise.</p> |
| 45 |
</div> |
| 46 |
<div class="section" id="options"> |
| 47 |
<h1><a class="toc-backref" href="#contents">Options</a></h1> |
| 48 |
<table class="docutils option-list" frame="void" rules="none"> |
| 49 |
<col class="option" /> |
| 50 |
<col class="description" /> |
| 51 |
<tbody valign="top"> |
| 52 |
<tr><td class="option-group" colspan="2"> |
| 53 |
<kbd><span class="option">-r</span>, <span class="option">--rev <var><REV></var></span></kbd></td> |
| 54 |
</tr> |
| 55 |
<tr><td> </td><td>search the repository as it is in REV</td></tr> |
| 56 |
<tr><td class="option-group"> |
| 57 |
<kbd><span class="option">-0</span>, <span class="option">--print0</span></kbd></td> |
| 58 |
<td>end filenames with NUL, for use with xargs</td></tr> |
| 59 |
<tr><td class="option-group"> |
| 60 |
<kbd><span class="option">-f</span>, <span class="option">--fullpath</span></kbd></td> |
| 61 |
<td>print complete paths from the filesystem root</td></tr> |
| 62 |
<tr><td class="option-group" colspan="2"> |
| 63 |
<kbd><span class="option">-I</span>, <span class="option">--include <var><PATTERN[+]></var></span></kbd></td> |
| 64 |
</tr> |
| 65 |
<tr><td> </td><td>include names matching the given patterns</td></tr> |
| 66 |
<tr><td class="option-group" colspan="2"> |
| 67 |
<kbd><span class="option">-X</span>, <span class="option">--exclude <var><PATTERN[+]></var></span></kbd></td> |
| 68 |
</tr> |
| 69 |
<tr><td> </td><td>exclude names matching the given patterns</td></tr> |
| 70 |
</tbody> |
| 71 |
</table> |
| 72 |
<p>[+] marked option can be specified multiple times</p> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
</body> |
| 76 |
</html> |