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
3210 files updated, 0 files merged, 1 files removed, 0 files unresolvedsub/b not presentsub not present