##// END OF EJS Templates
Fix test-push-validation under Windows
Patrick Mezard -
r10469:b26c4a89 stable
parent child Browse files
Show More
@@ -1,14 +1,15 b''
1 1 #!/usr/bin/env python
2 2 #
3 3 # This used to be a simple sed call like:
4 4 #
5 5 # $ sed "s:$HGTMP:*HGTMP*:"
6 6 #
7 7 # But $HGTMP has ':' under Windows which breaks the sed call.
8 8 #
9 9 import sys, os
10 10
11 11 input = sys.stdin.read()
12 input = input.replace(os.environ['HGTMP'], '$HGTMP')
13 12 input = input.replace(os.sep, '/')
13 hgtmp = os.environ['HGTMP'].replace(os.sep, '/')
14 input = input.replace(hgtmp, '$HGTMP')
14 15 sys.stdout.write(input)
@@ -1,24 +1,22 b''
1 1 #!/bin/sh
2 2
3 STRIP=`pwd`
4
5 3 hg init test
6 4 cd test
7 5 cat > .hg/hgrc <<EOF
8 6 [server]
9 7 validate=1
10 8 EOF
11 9 echo alpha > alpha
12 10 echo beta > beta
13 11 hg addr
14 12 hg ci -m 1
15 13
16 14 cd ..
17 15 hg clone test test-clone
18 16
19 17 cd test-clone
20 18 cp .hg/store/data/beta.i tmp
21 19 echo blah >> beta
22 20 hg ci -m '2 (corrupt)'
23 21 mv tmp .hg/store/data/beta.i
24 hg push 2>&1 | sed "s%$STRIP%test-root%"
22 hg push 2>&1 | "$TESTDIR/filtertmp.py"
@@ -1,12 +1,12 b''
1 1 adding alpha
2 2 adding beta
3 3 updating to branch default
4 4 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 pushing to test-root/test
5 pushing to $HGTMP/test-push-validation/test
6 6 searching for changes
7 7 adding changesets
8 8 adding manifests
9 9 adding file changes
10 10 transaction abort!
11 11 rollback completed
12 12 abort: missing file data for beta:dddc47b3ba30e54484720ce0f4f768a0f4b6efb9 - run hg verify
General Comments 0
You need to be logged in to leave comments. Login now