File: log_send_context.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 (20 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
. ./lib

# RT#544 using context created with 8-bit chars;

rm -rf temp1
mkdir temp1
cd temp1
darcs init
touch foo
darcs record -la -m 'add\212 foo' | grep 'Finished record'
darcs log --context >context
date > foo
darcs record -a -m 'date foo' | grep 'Finished record'
darcs send -a -o patch --context context . | grep 'Wrote patch to'
# again with an absolute path for the context file, see issue1240
# note we must not mix \\ and / so we use /bin/pwd here
cwd=$(/bin/pwd)
darcs send -a -o patch --context "$cwd/context" . | grep 'Wrote patch to'
cd ..