2009-04-24 20:17:42 +04:00
|
|
|
from mercurial.hg import parseurl
|
|
|
|
|
2010-02-07 16:29:07 +03:00
|
|
|
def testparse(url, branch=[]):
|
|
|
|
print '%s, branches: %r' % parseurl(url, branch)
|
2009-04-24 20:17:42 +04:00
|
|
|
|
|
|
|
testparse('http://example.com/no/anchor')
|
|
|
|
testparse('http://example.com/an/anchor#foo')
|
2010-02-07 16:29:07 +03:00
|
|
|
testparse('http://example.com/no/anchor/branches', branch=['foo'])
|
|
|
|
testparse('http://example.com/an/anchor/branches#bar', branch=['foo'])
|
|
|
|
testparse('http://example.com/an/anchor/branches-None#foo', branch=None)
|
2011-04-06 14:48:59 +04:00
|
|
|
testparse('http://example.com/')
|
|
|
|
testparse('http://example.com')
|
|
|
|
testparse('http://example.com#foo')
|