regolith/storage.py
def sync_hg(store, path):
    """Syncs the local documents via hg."""
    storedir, _ = os.path.split(path)
    # get or update the storage
    if os.path.isdir(os.path.join(storedir, ".hg")):
        client = hglib.open(storedir)
        client.pull(update=True, force=True)
    else:
        # Strip off three characters for hg+
        client = hglib.clone(store['url'][3:], storedir)
Syncs the local documents via hg.
Syncs the local documents via hg.
Syncs the local documents via hg .
def sync_hg(store, path):
    storedir, _ = os.path.split(path)
    if os.path.isdir(os.path.join(storedir, ".hg")):
        client = hglib.open(storedir)
        client.pull(update=True, force=True)
    else:
        client = hglib.clone(store['url'][3:], storedir)
def sync_hg ( store , path ) : storedir , _ = os . path . split ( path ) if os . path . isdir ( os . path . join ( storedir , ".hg" ) ) : client = hglib . open ( storedir ) client . pull ( update = True , force = True ) else : client = hglib . clone ( store [ 'url' ] [ 3 : ] , storedir )
Syncs the local documents via hg.
Syncs the local documents via hg .
"""Syncs the local documents via hg.""" # get or update the storage # Strip off three characters for hg+
store
path