tests/test-hg-parseurl.py
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 31 Jan 2010 02:34:50 +0900
changeset 10303 35bcb3152e67
parent 8174 29bc5d18714a
child 10365 d757bc0c7865
permissions -rw-r--r--
i18n-ja: synchronized with e7727a545c48

#!/usr/bin/env python

from mercurial.hg import parseurl

def testparse(url, rev=[]):
    print '%s, revs: %r, checkout: %r' % parseurl(url, rev)

testparse('http://example.com/no/anchor')
testparse('http://example.com/an/anchor#foo')
testparse('http://example.com/no/anchor/revs', rev=['foo'])
testparse('http://example.com/an/anchor/revs#bar', rev=['foo'])
testparse('http://example.com/an/anchor/rev-None#foo', rev=None)