tests/test-hg-parseurl.py
changeset 28746 de5808c57f58
parent 28745 8a23f88131c3
child 28806 d26c4af27978
equal deleted inserted replaced
28745:8a23f88131c3 28746:de5808c57f58
     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'])