mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
cat: record the current behavior of wildcard matches in subrepos
Mercurial subrepos support any match patterns.
This commit is contained in:
parent
285d5a2a3b
commit
d46d87090c
@ -90,7 +90,7 @@ Interaction with Mercurial Commands
|
||||
:archive: archive does not recurse in subrepositories unless
|
||||
-S/--subrepos is specified.
|
||||
|
||||
:cat: cat currently only handles exact file matches in subrepos.
|
||||
:cat: Git subrepositories only support exact file matches.
|
||||
Subversion subrepositories are currently ignored.
|
||||
|
||||
:commit: commit creates a consistent snapshot of the state of the
|
||||
|
@ -1071,6 +1071,18 @@ Prepare a repo with subrepo
|
||||
"path": "sub/repo/foo"
|
||||
}
|
||||
]
|
||||
|
||||
non-exact match:
|
||||
|
||||
$ hg cat -T '{path}\n' 'glob:**'
|
||||
.hgsub
|
||||
.hgsubstate
|
||||
sub/repo/foo (glob)
|
||||
$ hg cat -T '{path}\n' 're:^sub'
|
||||
sub/repo/foo (glob)
|
||||
|
||||
missing subrepos in working directory:
|
||||
|
||||
$ mkdir -p tmp/sub/repo
|
||||
$ hg cat -r 0 --output tmp/%p_p sub/repo/foo
|
||||
$ cat tmp/sub/repo/foo_p
|
||||
|
Loading…
Reference in New Issue
Block a user