# HG changeset patch # User Dirkjan Ochtman # Date 1227369469 -3600 # Node ID e2048f5c7bf5304a9756fac356864282d9835ddb # Parent 03b60f2f90bf14594ffd733cace1102c5c10499b tests: fix tests broken by 03b60f2f90bf diff -r 03b60f2f90bf -r e2048f5c7bf5 tests/test-hgweb-commands.out Binary file tests/test-hgweb-commands.out has changed diff -r 03b60f2f90bf -r e2048f5c7bf5 tests/test-hgweb-diffs.out --- a/tests/test-hgweb-diffs.out Thu Nov 20 18:15:50 2008 -0800 +++ b/tests/test-hgweb-diffs.out Sat Nov 22 16:57:49 2008 +0100 @@ -75,21 +75,17 @@
- - - - - -
linediff
-
1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000 -
1.2+++ b/a Thu Jan 01 00:00:00 1970 +0000 -
1.3@@ -0,0 +1,1 @@ -
1.4+a -
2.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000 -
2.2+++ b/b Thu Jan 01 00:00:00 1970 +0000 -
2.3@@ -0,0 +1,1 @@ -
2.4+b -
+
line diff
+ +
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 + 1.2 +++ b/a Thu Jan 01 00:00:00 1970 +0000 + 1.3 @@ -0,0 +1,1 @@ + 1.4 +a +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 + 2.2 +++ b/b Thu Jan 01 00:00:00 1970 +0000 + 2.3 @@ -0,0 +1,1 @@ + 2.4 +b +
@@ -172,18 +168,13 @@
- - - - - -
linediff
+
line diff
-
1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000 -
1.2+++ b/a Thu Jan 01 00:00:00 1970 +0000 -
1.3@@ -0,0 +1,1 @@ -
1.4+a -
+
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 + 1.2 +++ b/a Thu Jan 01 00:00:00 1970 +0000 + 1.3 @@ -0,0 +1,1 @@ + 1.4 +a +
@@ -266,23 +257,19 @@
- - - - - -
linediff
-
1.1new file mode 100644 -
1.2--- /dev/null -
1.3+++ b/a -
1.4@@ -0,0 +1,1 @@ -
1.5+a -
2.1new file mode 100644 -
2.2--- /dev/null -
2.3+++ b/b -
2.4@@ -0,0 +1,1 @@ -
2.5+b -
+
line diff
+ +
1.1 new file mode 100644 + 1.2 --- /dev/null + 1.3 +++ b/a + 1.4 @@ -0,0 +1,1 @@ + 1.5 +a +
2.1 new file mode 100644 + 2.2 --- /dev/null + 2.3 +++ b/b + 2.4 @@ -0,0 +1,1 @@ + 2.5 +b +
@@ -365,19 +352,14 @@
- - - - - -
linediff
+
line diff
-
1.1new file mode 100755 -
1.2--- /dev/null -
1.3+++ b/a -
1.4@@ -0,0 +1,1 @@ -
1.5+a -
+
1.1 new file mode 100755 + 1.2 --- /dev/null + 1.3 +++ b/a + 1.4 @@ -0,0 +1,1 @@ + 1.5 +a +
diff -r 03b60f2f90bf -r e2048f5c7bf5 tests/test-hgweb-removed.out --- a/tests/test-hgweb-removed.out Thu Nov 20 18:15:50 2008 -0800 +++ b/tests/test-hgweb-removed.out Sat Nov 22 16:57:49 2008 +0100 @@ -73,17 +73,13 @@
- - - - - -
linediff
-
1.1--- a/a Thu Jan 01 00:00:00 1970 +0000 -
1.2+++ /dev/null Thu Jan 01 00:00:00 1970 +0000 -
1.3@@ -1,1 +0,0 @@ -
1.4-a -
+
line diff
+ +
1.1 --- a/a Thu Jan 01 00:00:00 1970 +0000 + 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 + 1.3 @@ -1,1 +0,0 @@ + 1.4 -a +
@@ -166,18 +162,13 @@
- - - - - -
linediff
+
line diff
-
1.1--- a/a Thu Jan 01 00:00:00 1970 +0000 -
1.2+++ /dev/null Thu Jan 01 00:00:00 1970 +0000 -
1.3@@ -1,1 +0,0 @@ -
1.4-a -
+
1.1 --- a/a Thu Jan 01 00:00:00 1970 +0000 + 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 + 1.3 @@ -1,1 +0,0 @@ + 1.4 -a +
diff -r 03b60f2f90bf -r e2048f5c7bf5 tests/test-highlight.out --- a/tests/test-highlight.out Thu Nov 20 18:15:50 2008 -0800 +++ b/tests/test-highlight.out Sat Nov 22 16:57:49 2008 +0100 @@ -75,13 +75,9 @@
- - - - - - -
linesource
1#!/usr/bin/env python
2
3__doc__ = """This does HTTP get requests given a host:port and path and returns
4a subset of the headers plus the body of the result."""
5
6import httplib, sys
7
8try:
9 import msvcrt, os
10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
12except ImportError:
13 pass
14
15headers = [h.lower() for h in sys.argv[3:]]
16conn = httplib.HTTPConnection(sys.argv[1])
17conn.request("GET", sys.argv[2])
18response = conn.getresponse()
19print response.status, response.reason
20for h in headers:
21 if response.getheader(h, None) is not None:
22 print "%s: %s" % (h, response.getheader(h))
23print
24sys.stdout.write(response.read())
25
26if 200 <= response.status <= 299:
27 sys.exit(0)
28sys.exit(1)
+
line source
+
1 #!/usr/bin/env python
3 __doc__ = """This does HTTP get requests given a host:port and path and returns
4 a subset of the headers plus the body of the result."""
6 import httplib, sys
8 try:
9 import msvcrt, os
10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
12 except ImportError:
13 pass
15 headers = [h.lower() for h in sys.argv[3:]]
16 conn = httplib.HTTPConnection(sys.argv[1])
17 conn.request("GET", sys.argv[2])
18 response = conn.getresponse()
19 print response.status, response.reason
20 for h in headers:
21 if response.getheader(h, None) is not None:
22 print "%s: %s" % (h, response.getheader(h))
23 print
24 sys.stdout.write(response.read())
26 if 200 <= response.status <= 299:
27 sys.exit(0)
28 sys.exit(1)
+
@@ -165,13 +161,9 @@
- - - - - - -
linesource
1h?bsch
+
line source
+
1 h?bsch
+
@@ -261,10 +253,9 @@ - - + - +
revlinesource  line source
test@0 1#!/usr/bin/env python
test@0 2
test@0 3__doc__ = """This does HTTP get requests given a host:port and path and returns
test@0 4a subset of the headers plus the body of the result."""
test@0 5
test@0 6import httplib, sys
test@0 7
test@0 8try:
test@0 9 import msvcrt, os
test@0 10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
test@0 11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
test@0 12except ImportError:
test@0 13 pass
test@0 14
test@0 15headers = [h.lower() for h in sys.argv[3:]]
test@0 16conn = httplib.HTTPConnection(sys.argv[1])
test@0 17conn.request("GET", sys.argv[2])
test@0 18response = conn.getresponse()
test@0 19print response.status, response.reason
test@0 20for h in headers:
test@0 21 if response.getheader(h, None) is not None:
test@0 22 print "%s: %s" % (h, response.getheader(h))
test@0 23print
test@0 24sys.stdout.write(response.read())
test@0 25
test@0 26if 200 <= response.status <= 299:
test@0 27 sys.exit(0)
test@0 28sys.exit(1)
test@0 1 #!/usr/bin/env python
test@0 2
test@0 3 __doc__ = """This does HTTP get requests given a host:port and path and returns
test@0 4 a subset of the headers plus the body of the result."""
test@0 5
test@0 6 import httplib, sys
test@0 7
test@0 8 try:
test@0 9 import msvcrt, os
test@0 10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
test@0 11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
test@0 12 except ImportError:
test@0 13 pass
test@0 14
test@0 15 headers = [h.lower() for h in sys.argv[3:]]
test@0 16 conn = httplib.HTTPConnection(sys.argv[1])
test@0 17 conn.request("GET", sys.argv[2])
test@0 18 response = conn.getresponse()
test@0 19 print response.status, response.reason
test@0 20 for h in headers:
test@0 21 if response.getheader(h, None) is not None:
test@0 22 print "%s: %s" % (h, response.getheader(h))
test@0 23 print
test@0 24 sys.stdout.write(response.read())
test@0 25
test@0 26 if 200 <= response.status <= 299:
test@0 27 sys.exit(0)
test@0 28 sys.exit(1)