tests/test-dirstate-future.t
author Adrian Buehlmann <adrian@cadifra.com>
Thu, 12 Aug 2010 20:25:37 +0200
changeset 11866 c4e2eb4871d7
parent 9378 tests/test-dirstate-future@1a7bcf58ba56
permissions -rw-r--r--
tests: unify test-dirstate-future
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11866
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     1
Prepare test repo:
9378
1a7bcf58ba56 dirstate.write: don't ignore stat data if mtime is in the future (issue1790)
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
     2
11866
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     3
  $ hg init
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     4
  $ echo a > a
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     5
  $ hg add
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     6
  adding a
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     7
  $ hg ci -m1
9378
1a7bcf58ba56 dirstate.write: don't ignore stat data if mtime is in the future (issue1790)
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
     8
11866
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
     9
Set mtime of a into the future:
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    10
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    11
  $ touch -t 202101011200 a
9378
1a7bcf58ba56 dirstate.write: don't ignore stat data if mtime is in the future (issue1790)
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
    12
11866
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    13
Status must not set a's entry to unset (issue1790):
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    14
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    15
  $ hg status
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    16
  $ hg debugstate
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    17
  n 644          2 2021-01-01 12:00:00 a
c4e2eb4871d7 tests: unify test-dirstate-future
Adrian Buehlmann <adrian@cadifra.com>
parents: 9378
diff changeset
    18