equal
deleted
inserted
replaced
1 from __future__ import absolute_import |
1 from __future__ import absolute_import, print_function |
2 from mercurial.hg import ( |
2 from mercurial.hg import ( |
3 parseurl, |
3 parseurl, |
4 ) |
4 ) |
5 |
5 |
6 def testparse(url, branch=[]): |
6 def testparse(url, branch=[]): |
7 print '%s, branches: %r' % parseurl(url, branch) |
7 print('%s, branches: %r' % parseurl(url, branch)) |
8 |
8 |
9 testparse('http://example.com/no/anchor') |
9 testparse('http://example.com/no/anchor') |
10 testparse('http://example.com/an/anchor#foo') |
10 testparse('http://example.com/an/anchor#foo') |
11 testparse('http://example.com/no/anchor/branches', branch=['foo']) |
11 testparse('http://example.com/no/anchor/branches', branch=['foo']) |
12 testparse('http://example.com/an/anchor/branches#bar', branch=['foo']) |
12 testparse('http://example.com/an/anchor/branches#bar', branch=['foo']) |