repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow upstream changes -- rest
[git-darcs-import.git]
/
tests
/
posthook.sh
blob
89157b84628e95801bdaddb162191005b93fd12f
1
#!/usr/bin/env bash
2
3
set -ev
4
5
rm
-rf
temp1
6
mkdir temp1
7
cd
temp1
8
darcs init
9
touch
foo
10
darcs add foo
11
12
# Check that posthook works...
13
darcs whatsnew
-s --posthook
'touch posthook-ran'
14
test -f
posthook-ran
15
rm
posthook-ran
16
17
# Check that posthook works with defaults...
18
echo
ALL
--posthook
touch
posthook-ran
>
_darcs
/
prefs
/
defaults
19
darcs whatsnew
-s
20
test -f
posthook-ran
21
rm
posthook-ran
22
23
echo
Successful.
24
25
cd
..
26
rm
-rf
temp1