Help: files

hg files [OPTION]... [FILE]...

list tracked files

Print files under Mercurial control in the working directory or specified revision for given files (excluding removed files). Files can be specified as filenames or filesets.

If no files are given to match, this command prints the names of all files under Mercurial control.

Template:

The following keywords are supported in addition to the common template keywords and functions. See also 'hg help templates'.

flags
String. Character denoting file's symlink and executable bits.
path
String. Repository-absolute path of the file.
size
Integer. Size of the file in bytes.

Examples:

  • list all files under the current directory:
    hg files .
    
  • shows sizes and flags for current revision:
    hg files -vr .
    
  • list all files named README:
    hg files -I "**/README"
    
  • list all binary files:
    hg files "set:binary()"
    
  • find files containing a regular expression:
    hg files "set:grep('bob')"
    
  • search tracked file contents with xargs and grep:
    hg files -0 | xargs -0 grep foo
    

See 'hg help patterns' and 'hg help filesets' for more information on specifying file patterns.

Returns 0 if a match is found, 1 otherwise.

options ([+] can be repeated):

-r --rev REV search the repository as it is in REV
-0 --print0 end filenames with NUL, for use with xargs
-I --include PATTERN [+] include names matching the given patterns
-X --exclude PATTERN [+] exclude names matching the given patterns
-T --template TEMPLATE display with template
-S --subrepos recurse into subrepositories

global options ([+] can be repeated):

-R --repository REPO repository root directory or name of overlay bundle file
--cwd DIR change working directory
-y --noninteractive do not prompt, automatically pick the first choice for all prompts
-q --quiet suppress output
-v --verbose enable additional output
--color TYPE when to colorize (boolean, always, auto, never, or debug)
--config CONFIG [+] set/override config option (use 'section.name=value')
--debug enable debugging output
--debugger start debugger
--encoding ENCODE set the charset encoding (default: UTF-8)
--encodingmode MODE set the charset encoding mode (default: strict)
--traceback always print a traceback on exception
--time time how long the command takes
--profile print command execution profile
--version output version information and exit
-h --help display help and exit
--hidden consider hidden changesets
--pager TYPE when to paginate (boolean, always, auto, or never) (default: auto)
PK5T}- stacks2_procrad-3459ad07928e/.hg_archival.txtUT[{bPK5Tž, stacks2_procrad-3459ad07928e/check_bcfile.pyUT[{bPK5T&' stacks2_procrad-3459ad07928e/macros.xmlUT[{bPK5Tk^ %/ Istacks2_procrad-3459ad07928e/macros_process.xmlUT[{bPK5T")*XY/ )stacks2_procrad-3459ad07928e/stacks_procrad.xmlUT[{bPK5T̼DL 8stacks2_procrad-3459ad07928e/test-data/clonefilter/Discarded1_0001.1.1.fq.gzUT[{bPK5T̼DS *:stacks2_procrad-3459ad07928e/test-data/clonefilter/Discarded1_0001.1.1.fq.single.gzUT[{bPK5T=^^YB ;stacks2_procrad-3459ad07928e/test-data/clonefilter/R1_0001.1.fq.gzUT[{bPK5TY|B g>stacks2_procrad-3459ad07928e/test-data/clonefilter/R2_0001.2.fq.gzUT[{bPK5Tz[KFJ @stacks2_procrad-3459ad07928e/test-data/clonefilter/Removed1_0001.1.1.fq.gzUT[{bPK5Tz[KFU Cstacks2_procrad-3459ad07928e/test-data/clonefilter/Removed1_0001.1.1.fq.single-alt.gzUT[{bPK5T="<7Q pFstacks2_procrad-3459ad07928e/test-data/clonefilter/Removed1_0001.1.1.fq.single.gzUT[{bPK5Tf7J 4Istacks2_procrad-3459ad07928e/test-data/clonefilter/Removed2_0001.2.2.fq.gzUT[{bPK5TbXB Kstacks2_procrad-3459ad07928e/test-data/clonefilter/clonefilter.logUT[{bPK5TX\B Lstacks2_procrad-3459ad07928e/test-data/cstacks/catalog.alleles.tsvUT[{bPK5TZzd? Mstacks2_procrad-3459ad07928e/test-data/cstacks/catalog.snps.tsvUT[{bPK5T}j? Nstacks2_procrad-3459ad07928e/test-data/cstacks/catalog.tags.tsvUT[{bPK5T62: Pstacks2_procrad-3459ad07928e/test-data/cstacks/cstacks.logUT[{bPK5T͘K<A "Rstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.1.faUT[{bPK5T2\PD Ustacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.1.fa.gzUT[{bPK5Tn38A 0Xstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.1.fqUT[{bPK5Th_tNI<A Zstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.2.faUT[{bPK5T2kD @^stacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.2.fa.gzUT[{bPK5Tc;A _`stacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.2.fqUT[{bPK5T&QǏZ ? bstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.fqUT[{bPK5TE cstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.rem.1.faUT[{bPK5Tp H dstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.rem.1.fa.gzUT[{bPK5TE dstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.rem.2.faUT[{bPK5T.>H estacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_01.rem.2.fa.gzUT[{bPK5T—`3A Qhstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_02.1.fqUT[{bPK5Tf!3~6A jstacks2_procrad-3459ad07928e/test-data/demultiplexed/PopA_02.2.fqUT[{bPK5TZM 80@ lstacks2_procrad-3459ad07928e/test-data/denovo_map/denovo_map.logUT[{bPK5T4kD ystacks2_procrad-3459ad07928e/test-data/denovo_map/popmap_cstacks.tsvUT[{bPK5TRN zstacks2_procrad-3459ad07928e/test-data/denovo_map/popmap_cstacks_genotypes.tsvUT[{bPK5Te.1 큾zstacks2_procrad-3459ad07928e/test-data/gentest.shUT[{bPK5TNWR? T|stacks2_procrad-3459ad07928e/test-data/gstacks/PopA_01.alns.bamUT[{bPK5Tde}? !stacks2_procrad-3459ad07928e/test-data/gstacks/PopA_02.alns.bamUT[{bPK5T\= stacks2_procrad-3459ad07928e/test-data/gstacks/alignments.bamUT[{bPK5TO BX@ stacks2_procrad-3459ad07928e/test-data/gstacks/catalog.calls.vcfUT[{bPK5TJN< stacks2_procrad-3459ad07928e/test-data/gstacks/catalog.fa.gzUT[{bPK5TSu: estacks2_procrad-3459ad07928e/test-data/gstacks/gstacks.logUT[{bPK5T!{hC stacks2_procrad-3459ad07928e/test-data/gstacks/gstacks.log.distribsUT[{bPK5TH stacks2_procrad-3459ad07928e/test-data/kmerfilter/Discarded1_0001.1.1.fqUT[{bPK5TH stacks2_procrad-3459ad07928e/test-data/kmerfilter/Discarded2_0001.2.2.fqUT[{bPK5Tw F stacks2_procrad-3459ad07928e/test-data/kmerfilter/Removed1_0001.1.1.fqUT[{bPK5T? :M Ϟstacks2_procrad-3459ad07928e/test-data/kmerfilter/Removed1_0001.1.1.fq.singleUT[{bPK5T(ʰF stacks2_procrad-3459ad07928e/test-data/kmerfilter/Removed2_0001.2.2.fqUT[{bPK5T$"; stacks2_procrad-3459ad07928e/test-data/kmerfilter/kfreq.tsvUT[{bPK5TZ[ M&? Pstacks2_procrad-3459ad07928e/test-data/kmerfilter/kfreqdist.tsvUT[{bPK5T͘5@ ٭stacks2_procrad-3459ad07928e/test-data/kmerfilter/kmerfilter.logUT[{bPK5T(+@ stacks2_procrad-3459ad07928e/test-data/populations/blacklist.tsvUT[{bPK5T3/ӐM ostacks2_procrad-3459ad07928e/test-data/populations/populations.CP.joinmap.locUT[{bPK5TNW97K stacks2_procrad-3459ad07928e/test-data/populations/populations.fixed.phylipUT[{bPK5TXVO >stacks2_procrad-3459ad07928e/test-data/populations/populations.fixed.phylip.logUT[{bPK5T1 N stacks2_procrad-3459ad07928e/test-data/populations/populations.fst_summary.tsvUT[{bPK5T!TwB stacks2_procrad-3459ad07928e/test-data/populations/populations.gtfUT[{bPK5T5-GWM stacks2_procrad-3459ad07928e/test-data/populations/populations.haplotypes.tsvUT[{bPK5T &xYLeK astacks2_procrad-3459ad07928e/test-data/populations/populations.haps.genepopUT[{bPK5Tf)1N /stacks2_procrad-3459ad07928e/test-data/populations/populations.haps.radpainterUT[{bPK5T>9G ݶstacks2_procrad-3459ad07928e/test-data/populations/populations.haps.vcfUT[{bPK5T_ K stacks2_procrad-3459ad07928e/test-data/populations/populations.hapstats.tsvUT[{bPK5TAr G Ustacks2_procrad-3459ad07928e/test-data/populations/populations.hzar.csvUT[{bPK5TELD-F estacks2_procrad-3459ad07928e/test-data/populations/populations.loci.faUT[{bPK5TI| B stacks2_procrad-3459ad07928e/test-data/populations/populations.logUT[{bPK5TURDmK stacks2_procrad-3459ad07928e/test-data/populations/populations.log.distribsUT[{bPK5TpJ stacks2_procrad-3459ad07928e/test-data/populations/populations.markers.tsvUT[{bPK5TK stacks2_procrad-3459ad07928e/test-data/populations/populations.phistats.tsvUT[{bPK5TQ}!3S stacks2_procrad-3459ad07928e/test-data/populations/populations.phistats_summary.tsvUT[{bPK5TBaH <stacks2_procrad-3459ad07928e/test-data/populations/populations.plink.mapUT[{bPK5Te$PH stacks2_procrad-3459ad07928e/test-data/populations/populations.plink.pedUT[{bPK5T M stacks2_procrad-3459ad07928e/test-data/populations/populations.samples-raw.faUT[{bPK5T I #stacks2_procrad-3459ad07928e/test-data/populations/populations.samples.faUT[{bPK5Ta@lpK Wstacks2_procrad-3459ad07928e/test-data/populations/populations.snps.genepopUT[{bPK5TP(YG Istacks2_procrad-3459ad07928e/test-data/populations/populations.snps.vcfUT[{bPK5T%#DhH stacks2_procrad-3459ad07928e/test-data/populations/populations.structureUT[{bPK5TC)K stacks2_procrad-3459ad07928e/test-data/populations/populations.sumstats.tsvUT[{bPK5TR)*,@S Estacks2_procrad-3459ad07928e/test-data/populations/populations.sumstats_summary.tsvUT[{bPK5TV9FF stacks2_procrad-3459ad07928e/test-data/populations/populations.treemixUT[{bPK5TM@>I stacks2_procrad-3459ad07928e/test-data/populations/populations.var.phylipUT[{bPK5TkM qstacks2_procrad-3459ad07928e/test-data/populations/populations.var.phylip.logUT[{bPK5Ts: e9 ~stacks2_procrad-3459ad07928e/test-data/procrad/R1.fq.gzipUT[{bPKQQa'