Mercurial > hg
diff tests/test-status.t @ 50463:f57f5ab0e220
branching: merge stable into default
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 09 May 2023 11:35:50 +0200 |
parents | 98fc949bec14 a20df0150f82 |
children | b861d913e7ec |
line wrap: on
line diff
--- a/tests/test-status.t Fri Apr 28 12:12:42 2023 +0200 +++ b/tests/test-status.t Tue May 09 11:35:50 2023 +0200 @@ -1005,3 +1005,27 @@ 0 -1 set subdir #endif + + +Test copy source formatting. + $ cd .. + $ hg init copy-source-repo + $ cd copy-source-repo + $ mkdir -p foo/bar + $ cd foo/bar + $ touch file + $ hg addremove + adding foo/bar/file + $ hg commit -m 'add file' + $ hg mv file copy + +Copy source respects relative path setting. + $ hg st --config ui.statuscopies=true --config commands.status.relative=true + A copy + file + R file + +Copy source is not shown when --no-status is passed. + $ hg st --config ui.statuscopies=true --no-status + foo/bar/copy + foo/bar/file