Show More
@@ -1,16 +1,17 | |||||
1 | from __future__ import absolute_import, print_function |
|
1 | from __future__ import absolute_import, print_function | |
2 | from mercurial.hg import ( |
|
2 | ||
3 | parseurl, |
|
3 | from mercurial import ( | |
|
4 | hg, | |||
4 | ) |
|
5 | ) | |
5 |
|
6 | |||
6 | def testparse(url, branch=[]): |
|
7 | def testparse(url, branch=[]): | |
7 | print('%s, branches: %r' % parseurl(url, branch)) |
|
8 | print('%s, branches: %r' % hg.parseurl(url, branch)) | |
8 |
|
9 | |||
9 | testparse('http://example.com/no/anchor') |
|
10 | testparse('http://example.com/no/anchor') | |
10 | testparse('http://example.com/an/anchor#foo') |
|
11 | testparse('http://example.com/an/anchor#foo') | |
11 | testparse('http://example.com/no/anchor/branches', branch=['foo']) |
|
12 | testparse('http://example.com/no/anchor/branches', branch=['foo']) | |
12 | testparse('http://example.com/an/anchor/branches#bar', branch=['foo']) |
|
13 | testparse('http://example.com/an/anchor/branches#bar', branch=['foo']) | |
13 | testparse('http://example.com/an/anchor/branches-None#foo', branch=None) |
|
14 | testparse('http://example.com/an/anchor/branches-None#foo', branch=None) | |
14 | testparse('http://example.com/') |
|
15 | testparse('http://example.com/') | |
15 | testparse('http://example.com') |
|
16 | testparse('http://example.com') | |
16 | testparse('http://example.com#foo') |
|
17 | testparse('http://example.com#foo') |
General Comments 0
You need to be logged in to leave comments.
Login now