[Updated] D10701: status: Add tests for some more edge cases
SimonSapin
phabricator at mercurial-scm.org
Mon May 10 14:53:22 UTC 2021
Closed by commit rHG65e6970042c5: status: Add tests for some more edge cases (authored by SimonSapin).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10701?vs=27775&id=27779
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10701/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10701
AFFECTED FILES
tests/test-status.t
CHANGE DETAILS
diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -689,6 +689,29 @@
$ ln -s ../repo0/.hg
$ hg status
+If the size hasn’t changed but mtime has, status needs to read the contents
+of the file to check whether it has changed
+
+ $ echo 1 > a
+ $ echo 1 > b
+ $ touch -t 200102030000 a b
+ $ hg commit -Aqm '#0'
+ $ echo 2 > a
+ $ touch -t 200102040000 a b
+ $ hg status
+ M a
+
+Asking specifically for the status of a deleted/removed file
+
+ $ rm a
+ $ rm b
+ $ hg status a
+ ! a
+ $ hg rm a
+ $ hg rm b
+ $ hg status a
+ R a
+
Check using include flag with pattern when status does not need to traverse
the working directory (issue6483)
To: SimonSapin, #hg-reviewers
Cc: mharbison72, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210510/6f16765b/attachment-0002.html>
More information about the Mercurial-patches
mailing list