Mercurial > hg
comparison tests/test-status.t @ 50360:a20df0150f82 stable
tests: add test for status copy source formatting
author | Arun Kulshreshtha <akulshreshtha@janestreet.com> |
---|---|
date | Wed, 26 Apr 2023 16:18:12 -0400 |
parents | adecb1ab4a0d |
children | f57f5ab0e220 |
comparison
equal
deleted
inserted
replaced
50359:f4ff55583dec | 50360:a20df0150f82 |
---|---|
998 | 998 |
999 $ hg debugdirstate --all --no-dates | grep '^ ' | 999 $ hg debugdirstate --all --no-dates | grep '^ ' |
1000 0 -1 set subdir | 1000 0 -1 set subdir |
1001 | 1001 |
1002 #endif | 1002 #endif |
1003 | |
1004 | |
1005 Test copy source formatting. | |
1006 $ cd .. | |
1007 $ hg init copy-source-repo | |
1008 $ cd copy-source-repo | |
1009 $ mkdir -p foo/bar | |
1010 $ cd foo/bar | |
1011 $ touch file | |
1012 $ hg addremove | |
1013 adding foo/bar/file | |
1014 $ hg commit -m 'add file' | |
1015 $ hg mv file copy | |
1016 | |
1017 Copy source respects relative path setting. | |
1018 $ hg st --config ui.statuscopies=true --config commands.status.relative=true | |
1019 A copy | |
1020 file | |
1021 R file | |
1022 | |
1023 Copy source is not shown when --no-status is passed. | |
1024 $ hg st --config ui.statuscopies=true --no-status | |
1025 foo/bar/copy | |
1026 foo/bar/file |