##// END OF EJS Templates
test-keyword: remove remaining sed calls
Christian Ebert -
r12629:c623752b default
parent child Browse files
Show More
@@ -50,6 +50,9 b' as it would succeed without uisetup othe'
50 > b = ignore
50 > b = ignore
51 > i = ignore
51 > i = ignore
52 > [hooks]
52 > [hooks]
53 > EOF
54 $ cp $HGRCPATH $HGRCPATH.nohooks
55 > cat <<EOF >> $HGRCPATH
53 > commit=
56 > commit=
54 > commit.test=cp a hooktest
57 > commit.test=cp a hooktest
55 > EOF
58 > EOF
@@ -157,10 +160,7 b' Test hook execution'
157
160
158 $ diff a hooktest
161 $ diff a hooktest
159
162
160 Removing commit hook from config
163 $ cp $HGRCPATH.nohooks $HGRCPATH
161
162 $ sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nohook
163 $ mv "$HGRCPATH".nohook "$HGRCPATH"
164 $ rm hooktest
164 $ rm hooktest
165
165
166 bundle
166 bundle
@@ -247,10 +247,7 b' Pull from bundle and trigger notify'
247 +ignore $Id$
247 +ignore $Id$
248 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
248 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
249
249
250 Remove notify config
250 $ cp $HGRCPATH.nohooks $HGRCPATH
251
252 $ sed -e '/\[hooks\]/,$ d' "$HGRCPATH" > $HGRCPATH.nonotify
253 $ mv "$HGRCPATH".nonotify "$HGRCPATH"
254
251
255 Touch files and check with status
252 Touch files and check with status
256
253
@@ -730,8 +727,8 b' Clone to test incoming'
730
727
731 Imported patch should not be rejected
728 Imported patch should not be rejected
732
729
733 $ sed -e 's/Id.*/& rejecttest/' a > a.new
730 $ python -c \
734 $ mv a.new a
731 > 'import re; s=re.sub("(Id.*)","\\1 rejecttest",open("a").read()); open("a","wb").write(s);'
735 $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
732 $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>'
736 a
733 a
737 overwriting a expanding keywords
734 overwriting a expanding keywords
General Comments 0
You need to be logged in to leave comments. Login now