projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
FIXME: hotpatch for compatibility with latest hg
[git]
/
git_remote_helpers
/
hg
/
util.py
1
#!/usr/bin/env python
2
3
from mercurial import hg
4
5
def parseurl(url, heads=[]):
6
url, heads = hg.parseurl(url, heads)
7
if isinstance(heads, tuple) and len(heads) == 2:
8
# hg 1.6 or later
9
_junk, heads = heads
10
if heads:
11
checkout = heads[0]
12
else:
13
checkout = None
14
return url, heads, checkout