Show More
@@ -3166,9 +3166,11 b' def amend(ui, repo, old, extra, pats, op' | |||||
3166 | # introduced file X and the file was renamed in the working |
|
3166 | # introduced file X and the file was renamed in the working | |
3167 | # copy, then those two files are the same and |
|
3167 | # copy, then those two files are the same and | |
3168 | # we can discard X from our list of files. Likewise if X |
|
3168 | # we can discard X from our list of files. Likewise if X | |
3169 |
# was |
|
3169 | # was removed, it's no longer relevant. If X is missing (aka | |
|
3170 | # deleted), old X must be preserved. | |||
3170 | files.update(filestoamend) |
|
3171 | files.update(filestoamend) | |
3171 |
files = [f for f in files if not samefile(f, wctx, base) |
|
3172 | files = [f for f in files if (not samefile(f, wctx, base) | |
|
3173 | or f in wctx.deleted())] | |||
3172 |
|
3174 | |||
3173 | def filectxfn(repo, ctx_, path): |
|
3175 | def filectxfn(repo, ctx_, path): | |
3174 | try: |
|
3176 | try: |
@@ -268,8 +268,6 b' amend r1 to include wc changes' | |||||
268 |
|
268 | |||
269 | clean/modified/removed/added states of the amended revision |
|
269 | clean/modified/removed/added states of the amended revision | |
270 |
|
270 | |||
271 | BROKEN: missing files are removed |
|
|||
272 |
|
||||
273 | $ hg status --all --change . 'glob:content1_*_content1-tracked' |
|
271 | $ hg status --all --change . 'glob:content1_*_content1-tracked' | |
274 | C content1_content1_content1-tracked |
|
272 | C content1_content1_content1-tracked | |
275 | C content1_content2_content1-tracked |
|
273 | C content1_content2_content1-tracked | |
@@ -297,7 +295,7 b' BROKEN: missing files are removed' | |||||
297 | $ hg status --all --change . 'glob:missing_content2_*' |
|
295 | $ hg status --all --change . 'glob:missing_content2_*' | |
298 | A missing_content2_content2-tracked |
|
296 | A missing_content2_content2-tracked | |
299 | A missing_content2_content3-tracked |
|
297 | A missing_content2_content3-tracked | |
300 |
A missing_content2_missing-tracked |
|
298 | A missing_content2_missing-tracked | |
301 | $ hg status --all --change . 'glob:missing_missing_*' |
|
299 | $ hg status --all --change . 'glob:missing_missing_*' | |
302 | A missing_missing_content3-tracked |
|
300 | A missing_missing_content3-tracked | |
303 |
|
301 |
General Comments 0
You need to be logged in to leave comments.
Login now