You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/source_control
Jordi Gutiérrez Hermoso c038e7013a hg: discard changes without changing the current revision
The command `hg up -C` by default moves to the latest revision on the
current branch. The `discard` function was trying to update to a
different branch, in case it was provided, by passing a `-r REVISION`
argument. Not only is this not the intended effect of the `discard`
function, but this also could update to a different branch that hasn't
been pulled yet, which is how we were experiencing trouble.

Instead, we unconditionally do `hg up -C -r .` to "update" to the
current revision (i.e. to "."), while `-C/--clean`ing the current
directory. This is similar to `hg revert --all`, except that it also
undoes the merge state of the working directory, in case there was
any.
10 years ago
..
__init__.py package files 11 years ago
git.py Merge pull request #721 from jinowolski/devel 11 years ago
hg.py hg: discard changes without changing the current revision 10 years ago
subversion.py Replaced tabbed indentation with spaces for subversion module 11 years ago