File: issue2353.sh

package info (click to toggle)
darcs 2.18.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,960 kB
  • sloc: haskell: 47,748; sh: 13,466; ansic: 447; perl: 134; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## issue2353: darcs does not show old changes of moved files

#!/usr/bin/env bash
. ./lib

rm -rf test
mkdir test
cd test
darcs init
echo 'hello world' > file
darcs add file
darcs record -am 'patch 1' --skip-long
darcs mv file new_file
darcs record -am 'file -> new_file' --skip-long
darcs diff -p 'patch 1' | grep -F "+hello world"
cd ..