tests/test-copy.t
changeset 47141 5ffc6c18fb96
parent 46886 37f49d462394
child 49266 ccd76e292be5
equal deleted inserted replaced
47140:ecfe0819ada5 47141:5ffc6c18fb96
   113   $ echo foo > foo
   113   $ echo foo > foo
   114 should fail - foo is not managed
   114 should fail - foo is not managed
   115   $ hg mv foo bar
   115   $ hg mv foo bar
   116   foo: not copying - file is not managed
   116   foo: not copying - file is not managed
   117   abort: no files to copy
   117   abort: no files to copy
       
   118   (maybe you meant to use --after --at-rev=.)
   118   [10]
   119   [10]
   119   $ hg st -A
   120   $ hg st -A
   120   ? foo
   121   ? foo
   121 respects ui.relative-paths
   122 respects ui.relative-paths
   122   $ mkdir dir
   123   $ mkdir dir
   123   $ cd dir
   124   $ cd dir
   124   $ hg mv ../foo ../bar
   125   $ hg mv ../foo ../bar
   125   ../foo: not copying - file is not managed
   126   ../foo: not copying - file is not managed
   126   abort: no files to copy
   127   abort: no files to copy
       
   128   (maybe you meant to use --after --at-rev=.)
   127   [10]
   129   [10]
   128   $ hg mv ../foo ../bar --config ui.relative-paths=yes
   130   $ hg mv ../foo ../bar --config ui.relative-paths=yes
   129   ../foo: not copying - file is not managed
   131   ../foo: not copying - file is not managed
   130   abort: no files to copy
   132   abort: no files to copy
       
   133   (maybe you meant to use --after --at-rev=.)
   131   [10]
   134   [10]
   132   $ hg mv ../foo ../bar --config ui.relative-paths=no
   135   $ hg mv ../foo ../bar --config ui.relative-paths=no
   133   foo: not copying - file is not managed
   136   foo: not copying - file is not managed
   134   abort: no files to copy
   137   abort: no files to copy
       
   138   (maybe you meant to use --after --at-rev=.)
   135   [10]
   139   [10]
   136   $ cd ..
   140   $ cd ..
   137   $ rmdir dir
   141   $ rmdir dir
   138   $ hg add foo
   142   $ hg add foo
   139 dry-run; print a warning that this is not a real copy; foo is added
   143 dry-run; print a warning that this is not a real copy; foo is added