Merge pull request #2528 from jordiecometrica/hg-discard
hg: discard changes without changing the current revision
This commit is contained in:
commit
2a33599698
1 changed files with 1 additions and 3 deletions
|
@ -137,9 +137,7 @@ class Hg(object):
|
|||
if not before:
|
||||
return False
|
||||
|
||||
args = ['update', '-C', '-R', self.dest]
|
||||
if self.revision is not None:
|
||||
args = args + ['-r', self.revision]
|
||||
args = ['update', '-C', '-R', self.dest, '-r', '.']
|
||||
(rc, out, err) = self._command(args)
|
||||
if rc != 0:
|
||||
self.module.fail_json(msg=err)
|
||||
|
|
Loading…
Reference in a new issue