tests/test-backwards-remove.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 01 Mar 2023 16:05:28 +0100
branchstable
changeset 49694 53f196622699
parent 49585 55c6ebd11cb9
permissions -rw-r--r--
dirstate: abstract the reading of the data file in v2 in a method We will need more changes to avoid some race conditions during read, so we first isolate the simple logic before making it more complicated.

  $ hg init repo
  $ cd repo
  $ echo This is file a1 > a
  $ hg add a
  $ hg commit -m "commit #0"
  $ ls -A
  .hg
  a
  $ echo This is file b1 > b
  $ hg add b
  $ hg commit -m "commit #1"
  $ hg co 0
  0 files updated, 0 files merged, 1 files removed, 0 files unresolved

B should disappear

  $ ls -A
  .hg
  a