Mercurial > public > mercurial-scm > hg
diff tests/test-sparse.t @ 52739:f0c439952ecb
sparse: add test for status --rev --rev and --change
Sparse only applies to the working copy, not history, so it should be ignored
for status --rev --rev. Python is correct here but rhg has a bug, introduced in
136e74c2bf8f917cf963dc1b594b6a90f8e5f627. I will fix it in the next changeset.
(On the other hand, status --rev --rev *should* respect the narrowspec. There is
already a test for this at the bottom of tests/test-narrow-patch.t.)
author | Mitchell Kember <mkember@janestreet.com> |
---|---|
date | Tue, 04 Feb 2025 13:39:28 -0500 |
parents | 93a533fa04ec |
children | 7405f8a67611 |
line wrap: on
line diff
--- a/tests/test-sparse.t Mon Jan 27 19:47:43 2025 +0100 +++ b/tests/test-sparse.t Tue Feb 04 13:39:28 2025 -0500 @@ -51,6 +51,14 @@ .hg hide +Test that status --rev --rev and --change ignore sparse rules. + $ hg status --rev null --rev 0 + A hide + A show (no-rhg !) + $ hg status --change 0 + A hide + A show (no-rhg !) + Absolute paths outside the repo should just be rejected #if no-windows