|
|
|
@ -124,7 +124,7 @@ class Hg(object):
|
|
|
|
|
self.dest = dest
|
|
|
|
|
self.repo = repo
|
|
|
|
|
self.revision = revision
|
|
|
|
|
self.hg_path = self.hg_path
|
|
|
|
|
self.hg_path = hg_path
|
|
|
|
|
|
|
|
|
|
def _command(self, args_list):
|
|
|
|
|
(rc, out, err) = self.module.run_command([self.hg_path] + args_list)
|
|
|
|
@ -234,7 +234,7 @@ def main():
|
|
|
|
|
revision = module.params['revision']
|
|
|
|
|
force = module.params['force']
|
|
|
|
|
purge = module.params['purge']
|
|
|
|
|
hg_path = module.parames['executable'] or module.get_bin_path('hg', True)
|
|
|
|
|
hg_path = module.params['executable'] or module.get_bin_path('hg', True)
|
|
|
|
|
hgrc = os.path.join(dest, '.hg/hgrc')
|
|
|
|
|
|
|
|
|
|
# initial states
|
|
|
|
|