hg.py: add islocal() and defaultdest() functions, refactor
islocal tells if a repo or url is local.
defaultdest returns default path for clone if explicit path not given.
clone can now take repo or url as source
#!/bin/shmkdir tcd thg initecho a > ahg add ahg commit -m test -d "1000000 0"hg historyhg manifesthg cat ahg verify