[Bug 5127] New: hg files should not show subrepos by default
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Sun Mar 6 05:38:35 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5127
Bug ID: 5127
Summary: hg files should not show subrepos by default
Product: Mercurial
Version: 3.7.2
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: fritzophrenic at gmail.com
CC: mercurial-devel at selenic.com
hg help subrepo says:
files files does not recurse into subrepos unless -S/--subrepos
is specified.
However, I'm finding that "hg files" *always* recurses into subrepos. On the
other hand, "hg status" does what I'd expect:
> mkdir testrepo
> mkdir testrepo\dirA
> mkdir testrepo\dirA\subrepo
> cd testrepo\dirA\subrepo
> echo hello world> file.txt
> hg init
> hg add file.txt
> hg commit -m "adding file"
> cd ..\..
> echo dirA\subrepo = dirA\subrepo> .hgsub
> hg init
> hg add .hgsub
> hg commit -m "adding subrepo"
> hg files
.hgsub
.hgsubstate
dirB\subrepo\file.txt
> hg status --all
C .hgsub
C .hgsubstate
> hg status --all -S
C .hgsub
C .hgsubstate
C dirA\subrepo\file.txt
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list