comparison tests/test-add.t @ 19987:ba6486076429 stable

merge: move forgets to the beginning of the action list Forgets need to be in the beginning of the action list, same as removes. This lets us avoid clashes in the dirstate where a directory is forgotten and a file with the same name is added, or vice versa.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 06 Nov 2013 10:20:18 -0800
parents 01ed5bb5cd41
children 19d6fec60b81
comparison
equal deleted inserted replaced
19986:ea81f8b2364e 19987:ba6486076429
134 [1] 134 [1]
135 $ hg st 135 $ hg st
136 M a 136 M a
137 A c 137 A c
138 ? a.orig 138 ? a.orig
139 $ hg up -C
140 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
141
142 forget and get should have the right order: added but missing dir should be
143 forgotten before file with same name is added
144
145 $ echo file d > d
146 $ hg add d
147 $ hg ci -md
148 $ hg rm d
149 $ mkdir d
150 $ echo a > d/a
151 $ hg add d/a
152 $ rm -r d
153 $ hg up -C
154 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
155 $ cat d
156 file d
139 157
140 $ cd .. 158 $ cd ..