summaryrefslogtreecommitdiff
path: root/source_control
Commit message (Collapse)AuthorAgeFilesLines
...
* Missing documentation fix (#2516)Petrox2016-04-121-0/+1
| | | Extending the documentation to state, that this module does not handle externals well.
* git still needs to have abspath applied to destToshio Kuratomi2016-04-061-0/+1
|
* Reset all locale environment variables before running svn commandsThomas Quinot2016-04-051-1/+4
| | | | | | | | | We screenscrape the output of svn(1), so better ensure it is using the C locale. Fixes #3255
* Use type='path' for path arguments for git moduleMichael Scherer2016-03-291-8/+3
|
* Merge pull request #934 from jbgo/git-depth-switch-versionBrian Coca2016-03-111-0/+14
|\ | | | | git: set remote branch before switching versions when using depth arg
| * git: set remote branch before switching versions when using depth argumentJordan Bach2015-03-121-0/+14
| |
* | change a parameter to type=pathToshio Kuratomi2016-02-291-3/+3
| |
* | Since we screenscrape output from git to tell us information we need to use ↵Toshio Kuratomi2016-02-071-1/+6
| | | | | | | | | | | | | | | | | | | | the C locale when running commands. Using another locale would mean that we get information that may have the strings that we are looking for. Fixes #2449 Fixes #2462
* | Merge pull request #2528 from jordiecometrica/hg-discardBrian Coca2016-01-121-3/+1
|\ \ | | | | | | hg: discard changes without changing the current revision
| * | hg: discard changes without changing the current revisionJordi Gutiérrez Hermoso2015-11-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | forcing git fetch if sha1 are equal between repos but branch exists only at ↵Jan Duzinkiewicz2016-01-111-1/+3
| | | | | | | | | | | | | | | | | | remote Add an explanatory comment to the code
* | | Github uses both HTTP and HTTPS protocolsDmitry Labutin2015-12-291-1/+1
| | |
* | | Fix name of ssh_opts argChris Streeter2015-11-191-1/+1
| | |
* | | Merge pull request #2235 from tdbabas/develBrian Coca2015-10-151-2/+3
|\ \ \ | | | | | | | | Fixing issue with subversion module whereby the module was reporting local modifications being present when externals were being used
| * | | fixing issue with subversion module whereby the module was reporting local ↵Tim Barnes2015-10-091-2/+3
| | | | | | | | | | | | | | | | modifications being present when externals were being used
* | | | Fix detached head detection in is_not_a_branch()Andrew Widdersheim2015-10-061-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detached head detection seems to have broken somewhere a long the way because git decided to change how that situation looks when doing a 'git branch -a' which is performed by get_branches(). This is how git 1.7.1 displays this situation (which works): shell> git branch -a * (no branch) master This is the output from git 1.8.3.1 (which does not work): shell> git branch -a * (detached from e132711) master It looks like this same wording is used in the most recent version of git (2.6.1 as of writing this).
* | | Merge pull request #465 from bbaumer/develJames Cammarata2015-09-111-6/+26
|\ \ \ | |/ / |/| | SVN 1.7 Support, ignore svn:externals on local mod check and new switch toggle
| * | version_added for switch Parameter changed to 2.0Benjamin Baumer2015-07-071-7/+4
| | | | | | | | | | | | | | | Add comment to explain check_rc Parameter in _exec Function Optimize code and clean up is_svn_repo Function
| * | Fix: Calling svn info to determine if dest is an svn Working Copy,Benjamin Baumer2015-07-071-6/+29
| | | | | | | | | | | | | | | | | | to support updates in Subfolders with Subversion > 1.8 Fix: Ignoring svn:externals on local Modification Check. Add: Added Argument switch to alow skipping the svn switch call.
* | | Merge pull request #721 from jinowolski/develBrian Coca2015-09-041-1/+12
|\ \ \ | | | | | | | | update git remote url before ls-remote
| * | | update git remote url before ls-remoteJan Inowolski2015-01-291-1/+12
| | | | | | | | | | | | | | | | related to #8177
* | | | Merge pull request #1149 from catlee/hg_updateBrian Coca2015-07-211-0/+12
|\ \ \ \ | |_|/ / |/| | | Add support for 'update' parameter to hg module
| * | | Add support for 'update' parameter to hg moduleChris AtLee2015-04-161-0/+12
| | |/ | |/|
* | | Replaced tabbed indentation with spaces for subversion moduleMatt Martz2015-07-011-1/+1
| | |
* | | added doc to note that git the command line tool is required for this moduel ↵Brian Coca2015-06-271-1/+2
| | | | | | | | | | | | | | | | | | to function fixes http://github.com/ansible/ansible/issues/11358
* | | Proper author info for all remaining modulesGreg DeKoenigsberg2015-06-153-3/+5
| | |
* | | fixed doc issue with gitBrian Coca2015-06-101-3/+3
| | |
* | | Merge pull request #783 from Gugli/fix-svn-has-local-mods-with-externalsBrian Coca2015-06-101-4/+3
|\ \ \ | | | | | | | | Fix subversion module for repos with svn:externals files
| * | | Add support for repos with svn:externals filesGugli2015-02-131-4/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a SVN repository has some svn:externals properties, files will be reported with the X attribute, and lines will be added at the end to list externals statuses with a text looking like "Performing status on external item at ....". Such lines were counted as a local modification by the regex, and the module returned a change, even though they were none. To have a clean (and parsable) "svn status" output, it is recommended to use the --quiet option. The externals will only appear if they have been modified. With this option on, it seems even safer to consider there are local modifications when "svn status" outputs anything.
* | | git: Add option to verify GPG signature of commitDionysis Grigoropoulos2015-06-091-4/+33
|/ /
* | Reverse the force parameter for the hg moduleToshio Kuratomi2015-01-291-3/+4
|/
* Change the git force parameter to default to no as a safety change.Toshio Kuratomi2015-01-281-3/+4
| | | | Fixes #306
* Make documentation list when force changed defaultsToshio Kuratomi2015-01-281-0/+1
|
* Update force documentation to reflect default=noToshio Kuratomi2015-01-281-1/+1
|
* Merge pull request #506 from mscherer/fix_370Toshio Kuratomi2015-01-281-7/+15
|\ | | | | Fix #370
| * Fix #370, by allowing to export over a existing repositoryMichael Scherer2014-12-131-4/+7
| | | | | | | | This requires to use force=True
| * Make force parameter work for export operationMichael Scherer2014-12-131-3/+8
| | | | | | | | | | | | | | | | The default is changed from 'yes' to 'no' to follow subversion behavior (ie, requiring explicit confirmation to erase a existing repository). Since that was not working before cf #370 and since the option was ignored before and unused, this should be safe to change.
* | Merge pull request #93 from natefoo/hg-bugfixToshio Kuratomi2015-01-071-7/+33
|\ \ | | | | | | Fix numerous bugs in the hg module
| * | Fix a few bugs and misbehavior in the hg module:Nate Coraor2014-10-011-7/+33
| |/ | | | | | | | | | | | | | | 1. Don't pull when `dest` is already at the desired changeset. 2. Don't change the working copy when cleaning or pulling and a revision was specified. 3. Change the default for the `revision` param to match the behavior of hg.
* | git fetch --tags overwrites normal fetching with git < 1.8.x so do a normal ↵Toshio Kuratomi2014-12-221-5/+7
| | | | | | | | fetch followed by using the refspec format for fetching tags
* | Fix typo in git refspec code. Change lists to tuplesToshio Kuratomi2014-12-221-4/+4
| |
* | Merge pull request #371 from rohanpm/git_refspecToshio Kuratomi2014-12-221-28/+41
|\ \ | | | | | | git: add 'refspec' argument
| * | git: add 'refspec' argumentRohan McGovern2014-12-191-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | This argument may be used to fetch additional refs beyond the default refs/heads/* and refs/tags/*. Checking out GitHub pull requests or Gerrit patch sets are two examples where this is useful. Without this, specifying version=<sha1> with a SHA1 unreachable from any tag or branch can't work.
| * | git: clean up "fetch" methodRohan McGovern2014-12-191-23/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | De-duplicate repetitive code checking the exit code. Include the stdout/stderr of the failed process in all cases. Remove the returned values because no caller uses them. Combine git commands where possible. There is no need to fetch branches and tags as two separate operations.
* | | Make documentation clear about update=no vs clone=noToshio Kuratomi2014-12-191-0/+4
|/ /
* | Probably would make clone a 1.9 feature rather than 1.8.3Toshio Kuratomi2014-12-171-1/+1
| |
* | Make git's update parameter revert to its old behaviour and add new clone ↵Toshio Kuratomi2014-12-171-11/+21
| | | | | | | | | | | | | | parameter to take its place. Fixes #426 Fixes https://github.com/ansible/ansible/issues/8630
* | Merge pull request #158 from ajsalminen/git_dereference_annotated_tagToshio Kuratomi2014-12-151-1/+13
|\ \ | | | | | | [git] Find the actual commit annotated tags refer to instead of the tag object.
| * | Find the actual commit annotated tags refer to instead of the tag object.Antti Salminen2014-10-071-1/+13
| |/
* | Merge pull request #92 from astorije/expand_user_git_key_fileToshio Kuratomi2014-12-151-0/+4
|\ \ | | | | | | Expand the user home folder in the key_file argument of the git module