Mercurial > hg-stable
comparison tests/test-rename.t @ 16902:7f1cec2f63ab
test-rename.t: enable for Windows
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 10 Jun 2012 17:10:53 +0200 |
parents | 9910f60a37ee |
children | 973c2b0b403c |
comparison
equal
deleted
inserted
replaced
16901:5b89700cce30 | 16902:7f1cec2f63ab |
---|---|
1 $ "$TESTDIR/hghave" symlink || exit 80 | |
2 | |
3 $ hg init | 1 $ hg init |
4 $ mkdir d1 d1/d11 d2 | 2 $ mkdir d1 d1/d11 d2 |
5 $ echo d1/a > d1/a | 3 $ echo d1/a > d1/a |
6 $ echo d1/ba > d1/ba | 4 $ echo d1/ba > d1/ba |
7 $ echo d1/a1 > d1/d11/a1 | 5 $ echo d1/a1 > d1/d11/a1 |
388 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 386 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
389 $ rm d1/ca | 387 $ rm d1/ca |
390 | 388 |
391 attempt to overwrite an existing broken symlink | 389 attempt to overwrite an existing broken symlink |
392 | 390 |
391 #if symlink | |
393 $ ln -s ba d1/ca | 392 $ ln -s ba d1/ca |
394 $ hg rename --traceback d1/ba d1/ca | 393 $ hg rename --traceback d1/ba d1/ca |
395 d1/ca: not overwriting - file exists | 394 d1/ca: not overwriting - file exists |
396 $ hg status -C | 395 $ hg status -C |
397 ? d1/ca | 396 ? d1/ca |
408 d1/ba | 407 d1/ba |
409 R d1/ba | 408 R d1/ba |
410 $ hg update -C | 409 $ hg update -C |
411 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 410 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
412 $ rm d1/ca | 411 $ rm d1/ca |
412 #endif | |
413 | 413 |
414 do not copy more than one source file to the same destination file | 414 do not copy more than one source file to the same destination file |
415 | 415 |
416 $ mkdir d3 | 416 $ mkdir d3 |
417 $ hg rename d1/* d2/* d3 | 417 $ hg rename d1/* d2/* d3 |