def latest(name, rev=None, target=None, clean=False, user=None, identity=None, force=False, opts=False, update_head=True):
 ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}
 if (not target):
  return _fail(ret, '"target option is required')
 is_repository = (os.path.isdir(target) and os.path.isdir('{0}/.hg'.format(target)))
 if is_repository:
  ret = _update_repo(ret, name, target, clean, user, identity, rev, opts, update_head)
 else:
  if os.path.isdir(target):
   fail = _handle_existing(ret, target, force)
   if (fail is not None):
    return fail
  else:
   log.debug('target {0} is not found, "hg clone" is required'.format(target))
  if __opts__['test']:
   return _neutral_test(ret, 'Repository {0} is about to be cloned to {1}'.format(name, target))
  _clone_repo(ret, target, name, user, identity, rev, opts)
 return ret

def latest ( name , rev = None , target = None , clean = False , user = None , identity = None , force = False , opts = False , update_head = True ) : ret = { 'name' : name , 'result' : True , 'comment' : '' , 'changes' : { } } if ( not target ) : return _fail ( ret , '"target option is required' ) is_repository = ( os . path . isdir ( target ) and os . path . isdir ( '{0}/.hg' . format ( target ) ) ) if is_repository : ret = _update_repo ( ret , name , target , clean , user , identity , rev , opts , update_head ) else : if os . path . isdir ( target ) : fail = _handle_existing ( ret , target , force ) if ( fail is not None ) : return fail else : log . debug ( 'target {0} is not found, "hg clone" is required' . format ( target ) ) if __opts__ [ 'test' ] : return _neutral_test ( ret , 'Repository {0} is about to be cloned to {1}' . format ( name , target ) ) _clone_repo ( ret , target , name , user , identity , rev , opts ) return ret
topics ordered by created time .