tests/test-keyword.t
changeset 868 16cfcb56859a
parent 850 3c5de8747a32
child 874 272a8a316f7a
equal deleted inserted replaced
867:e560e379ce30 868:16cfcb56859a
   551   $ hg --verbose copy b i
   551   $ hg --verbose copy b i
   552   copying b to i
   552   copying b to i
   553   $ hg forget i
   553   $ hg forget i
   554   $ rm i
   554   $ rm i
   555 
   555 
   556 cp symlink (becomes regular file), and hg copy after
   556 cp symlink file; hg cp -A symlink file (part1)
       
   557 - copied symlink points to kwfile: overwrite
   557 
   558 
   558   $ cp sym i
   559   $ cp sym i
   559   $ ls -l i
   560   $ ls -l i
   560   -rw-r--r--* (glob)
   561   -rw-r--r--* (glob)
   561   $ head -1 i
   562   $ head -1 i
   599   rolling back to revision 1 (undo commit)
   600   rolling back to revision 1 (undo commit)
   600   $ hg status
   601   $ hg status
   601   A c
   602   A c
   602   $ hg update --clean
   603   $ hg update --clean
   603   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   604   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   605 
       
   606 cp symlink file; hg cp -A symlink file (part2)
       
   607 - copied symlink points to kw ignored file: do not overwrite
       
   608 
       
   609   $ cat a > i
       
   610   $ ln -s i symignored
       
   611   $ hg commit -Am 'fake expansion in ignored and symlink' i symignored
       
   612   $ cp symignored x
       
   613   $ hg copy --after --verbose symignored x
       
   614   copying symignored to x
       
   615   $ head -n 1 x
       
   616   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
       
   617   $ hg forget x
       
   618   $ rm x
       
   619 
       
   620   $ hg rollback
       
   621   rolling back to revision 1 (undo commit)
       
   622   $ hg update --clean
       
   623   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
   624   $ rm i symignored
   604 
   625 
   605 Custom keywordmaps as argument to kwdemo
   626 Custom keywordmaps as argument to kwdemo
   606 
   627 
   607   $ hg --quiet kwdemo "Xinfo = {author}: {desc}"
   628   $ hg --quiet kwdemo "Xinfo = {author}: {desc}"
   608   [extensions]
   629   [extensions]