mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
b5fe0d906e
This adds a " (glob)" marker that works like a simpler version of (re): "*" is converted to ".*", and "?" is converted to ".". Both special characters can be escaped using "\", and the backslash itself can be escaped as well. Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't supported.
17 lines
383 B
Perl
17 lines
383 B
Perl
$ hg init a
|
|
$ hg clone a b
|
|
updating to branch default
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ cd a
|
|
$ echo '[paths]' >> .hg/hgrc
|
|
$ echo 'dupe = ../b' >> .hg/hgrc
|
|
$ hg in dupe
|
|
comparing with */test-paths.t/b (glob)
|
|
no changes found
|
|
[1]
|
|
$ cd ..
|
|
$ hg -R a in dupe
|
|
comparing with */test-paths.t/b (glob)
|
|
no changes found
|
|
[1]
|