Mercurial > hg
annotate tests/test-purge-ignored-directory.t @ 49779:7d6c8943353a stable
hg: show the correct message when cloning an LFS repo with extension disabled
The `extensions._disabledpaths()` doesn't handle fetching help from `__index__`,
so it returns an empty dictionary of paths. That means None is always returned
from `extensions.disabled_help()` when embedding resources inside the pyoxidizer
or py2exe binary, regardless of the arg or if is an external extension stored in
the filesystem. And that means wrongly telling the user with an explicitly
disabled LFS extension that it will be enabled locally upon cloning from an LFS
remote. That causes test-lfs-serve.t:295 to fail.
This effectively reverts most of the rest of 843418dc0b1b, while keeping the
help text change in place (which was specifically identified as a problem).
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 05 Dec 2022 15:14:33 -0500 |
parents | 7e5377bdb66e |
children |
rev | line source |
---|---|
49422
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
1 skip ignored directories if -i or --all not specified |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
2 |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
3 $ hg init t |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
4 $ cd t |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
5 $ echo 'ignored' > .hgignore |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
6 $ hg ci -qA -m init -d'2 0' |
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
7 $ mkdir ignored |
49423
7e5377bdb66e
rust-status: ignored directories are now correctly only listed if opted into
Raphaël Gomès <rgomes@octobus.net>
parents:
49422
diff
changeset
|
8 $ ls |
7e5377bdb66e
rust-status: ignored directories are now correctly only listed if opted into
Raphaël Gomès <rgomes@octobus.net>
parents:
49422
diff
changeset
|
9 ignored |
49422
55f8f3b6787f
test: show how purge removes ignored directories
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
10 $ hg purge -v --no-confirm |
49423
7e5377bdb66e
rust-status: ignored directories are now correctly only listed if opted into
Raphaël Gomès <rgomes@octobus.net>
parents:
49422
diff
changeset
|
11 $ ls |
7e5377bdb66e
rust-status: ignored directories are now correctly only listed if opted into
Raphaël Gomès <rgomes@octobus.net>
parents:
49422
diff
changeset
|
12 ignored |