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