##// END OF EJS Templates
test: end printed diff "hunks" with an empty string in test-context.py...
Denis Laxalde -
r31270:59aec562 default
parent child Browse files
Show More
@@ -59,7 +59,7 b' print(ctxb.status(ctxa))'
59 # test performing a diff on a memctx
59 # test performing a diff on a memctx
60
60
61 for d in ctxb.diff(ctxa, git=True):
61 for d in ctxb.diff(ctxa, git=True):
62 print(d)
62 print(d, end='')
63
63
64 # test safeness and correctness of "ctx.status()"
64 # test safeness and correctness of "ctx.status()"
65 print('= checking context.status():')
65 print('= checking context.status():')
@@ -4,13 +4,11 b' Latin-1 : Gr\xfcezi!'
4 UTF-8 : Grüezi!
4 UTF-8 : Grüezi!
5 <status modified=['foo'], added=[], removed=[], deleted=[], unknown=[], ignored=[], clean=[]>
5 <status modified=['foo'], added=[], removed=[], deleted=[], unknown=[], ignored=[], clean=[]>
6 diff --git a/foo b/foo
6 diff --git a/foo b/foo
7
8 --- a/foo
7 --- a/foo
9 +++ b/foo
8 +++ b/foo
10 @@ -1,1 +1,2 @@
9 @@ -1,1 +1,2 @@
11 foo
10 foo
12 +bar
11 +bar
13
14 = checking context.status():
12 = checking context.status():
15 == checking workingctx.status:
13 == checking workingctx.status:
16 wctx._status=<status modified=['bar-m'], added=['bar-a'], removed=['bar-r'], deleted=[], unknown=[], ignored=[], clean=[]>
14 wctx._status=<status modified=['bar-m'], added=['bar-a'], removed=['bar-r'], deleted=[], unknown=[], ignored=[], clean=[]>
General Comments 0
You need to be logged in to leave comments. Login now