Commit graph

163 commits

Author SHA1 Message Date
Marcin Kuzminski
2e7e8659ac svn: expose run_svn_command 2019-03-25 21:42:06 +01:00
Marcin Kuzminski
7ae6f87669 Mercurial: changes for hg 4.9 support
- we dropped custom diff call and replace it with generic solution
- before ctx_diff was called which is no longer supported by vcsserver backend
2019-03-04 12:00:00 +01:00
Marcin Kuzminski
3871bc6f15 api: allow uncached content fetching.
- this is mostly to optimize for memory of indexer
2019-02-14 10:49:02 +01:00
Marcin Lulek
9002e26af3 mercurial-submodules: only show submodule in the path that it belongs too.
- before even submodules from root node were shown in subdirectories, and other way arround.
2019-02-12 10:40:50 +01:00
Marcin Lulek
ab90363218 nodes: make submodules sorting be equal to Directory 2019-02-12 10:24:48 +01:00
Marcin Kuzminski
1b48364bb6 commits: allow tag commit translation to be skipped for faster commit fetching in big chunks. 2019-02-11 19:58:34 +01:00
Marcin Kuzminski
5b8a28d0eb api: expose new functions for FTS
- vcs: added special md5 calculation that doesn't use content cache for more memory efficient md5 calculation.
2019-02-07 11:31:30 +01:00
Marcin Kuzminski
4c846e8f05 git: use rev-list for fetching last commit data inc ase of single commit. It's faster that using git log 2019-02-07 11:31:55 +01:00
Marcin Kuzminski
01cd008a20 api: expose merge message in the merge operation 2019-02-05 17:17:58 +01:00
Daniel Dourvaris
96fa4e0bdc py3: remove usage of basestring 2019-01-22 23:06:49 +01:00
Marcin Kuzminski
89024101a8 repo: show hooks version and update link in advanced section of repository. 2019-01-10 12:10:28 +01:00
Marcin Kuzminski
1ee8681939 exceptions: show original remote traceback, and more info if debug is enabled. 2019-01-04 13:43:57 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Daniel Dourvaris
599f9b7964 pull-requests: ensure merge response provide more details
- refactor merge responses with detailed messages
- fixes #5520
- code cleanups
2018-12-30 11:00:09 +01:00
Marcin Lulek
a10fdbd8ad vcs: expose SSL certificate path over the wire to the vcsserver.
- we might use it for some VCS commands.
2018-12-30 10:59:30 +01:00
Daniel Dourvaris
bd42c53c17 search: add support for elastic search 6
- elasticsearch new query lang and searcher
- much more advanced query lang
- added context aware search in repository groups, repository, commits, files view
- optimized quick search bar speed when using full text search
- added option to increase hits per file number from query URL using max_lines
- search results can be now marked inside a text file using ?mark=HIGHLIGHT_TEXT added to the url
2018-12-19 18:17:51 +01:00
Marcin Kuzminski
4719d0ff87 code: unified coverage notes to # pragma: no cover 2018-12-07 13:34:28 +01:00
Marcin Kuzminski
169a8475bb vcs: rename get_file_history to get_path_history as it better reflects what it does. 2018-12-07 09:43:58 +01:00
Marcin Kuzminski
f3d3f479b4 code: fixed deprecated octal calls for py3 compat. 2018-11-30 11:49:27 +01:00
Daniel Dourvaris
a55c002d0c git: reset should use explicit -- to distinguish we want reset of branch name. 2018-10-16 17:53:16 +02:00
Marcin Kuzminski
9014d9516c pull-requests: allow to show range diff in pr view 2018-10-15 12:44:36 +02:00
Marcin Kuzminski
4da7905b37 vcs: use a real two part name for merge operation.
- expose settings into vcs_settings for easier override later
2018-10-01 13:54:51 +02:00
Marcin Kuzminski
5a4a98b40e git: use a fetch_sync based creation of remote repos.
- skips fragile dulwich code that has problems with large repos
- is in sync with logic that does remote fetch
- is faster and more efficient
2018-09-21 13:35:45 +02:00
Marcin Kuzminski
9effaef334 git: use smarter way for checking if repo is empty. This doesn't spam logs with some dulwich exceptions, we shouldn't really care about here.` 2018-08-11 14:20:58 +02:00
Marcin Kuzminski
426032d9a2 caches: make gevent curl connection cache friendly.
- gevent threads needs it's own cache, and connection
- added strict detection of cache problem in gevent curl
2018-08-06 19:28:16 +02:00
Marcin Kuzminski
19c718c6fb http-client: improve exceptions 2018-08-06 00:13:28 +02:00
Marcin Kuzminski
cf24dcc987 depdendencies: bumped pycurl to 7.43.0.2 2018-08-03 23:05:40 +02:00
Marcin Kuzminski
74fc993e25 vcs: add nicer traceback information for curl errors. 2018-08-03 22:24:46 +02:00
Marcin Kuzminski
9038c818bd vcs-lib: code cleanup 2018-07-31 19:38:28 +02:00
Marcin Kuzminski
b51d537e66 exceptions: don't log error the lookup method errors. This happens so often we spam
the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG.
2018-07-23 14:50:15 +02:00
Marcin Kuzminski
f652093d5d http: use better logging with vcsserver context UUID. 2018-07-13 15:33:25 +02:00
Marcin Kuzminski
225757aaf3 hooks: made the callback host configurable.
- This allows easier docker container seperation
2018-07-03 11:57:03 +02:00
Marcin Kuzminski
f7b8c0f22a gevent: use cython compatible option. so no keyword argument specified. 2018-07-03 09:48:20 +02:00
Marcin Kuzminski
3fceb045dc gevent: fix new switch version 2018-07-02 14:03:34 +02:00
Marcin Kuzminski
42c80fe075 shadow-repos: use numeric repo id for creation of shadow repos.
- Fixes a problem after rename or move into repository group.
2018-06-21 14:04:06 +02:00
Marcin Kuzminski
367a32a69a git: use force fetch and update for target ref. This solves a case
when in PRs a target is force updated and is out of sync. Before
we used a pull which --ff-only fails obviosly because two are out of
sync. This change uses new logic that resets the target branch according to the
source target branch allowing smooth merge simulation.
2018-06-08 15:42:01 +02:00
Marcin Kuzminski
ce7620668d git: add option to skip stderr logging. 2018-06-08 11:54:41 +02:00
Marcin Kuzminski
1a3259da85 git: quote fake merge user to prevent this command to potentially fail 2018-06-05 00:07:14 +02:00
Marcin Kuzminski
ede517c6b1 shadow-repos: use safer way to destroy shadow repositories.
we had reported errors on removal of shadow repos. Not reproduced, however
suspecting are filesystem sync/symlink race-conditions on shared storage.

End result were existing shadow-repo directories that tricked rhodecode
into thinking shadow repos is existing, but infact it was a dummy
structure semi-removed. Using shutil.move we ENSURE rhodecode doesn't
read those back even if removal fails.
2018-06-05 09:53:29 +02:00
Marcin Kuzminski
382b0cf748 mercurial: compatability changes for mercurial 4.6.0 release 2018-05-09 21:40:20 +02:00
Marcin Kuzminski
ea287e0d07 diff-caches: show count and size in caches view per repository. 2018-04-18 16:52:40 +02:00
Bartłomiej Wołyńczyk
4637dd151e caching: add option to cache diffs for commits and pull requests.
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00
Marcin Kuzminski
bdf5f0afb6 svn: enable hooks and integration framework execution.
- This change will allow SVN to execute rhodecode integration framework
via executing the builting hooks.
- uses txn_id for svn to provide metadata required via Apache
- Interception of SVN transaction is required to use temporary stores for metadata
- hooks are now part of vcsserver where the install/control logic is stored
2018-04-06 12:44:01 +02:00
Marcin Kuzminski
3ea058d91b code: code fixes and small adjustments 2018-02-20 17:49:26 +01:00
Sandu Turcan
686eb87294 path-permissions: Throw RepositoryRequirementError is hgacl cannot be read 2018-02-19 18:12:52 -05:00
Sandu Turcan
cfbe15353a path-permissions: Path-based permissions for mercurial 2018-02-18 18:27:53 -05:00
Sandu Turcan
e4981d4e72 path-permissions: Initial support for path-based permissions 2018-02-18 19:30:42 -05:00
Marcin Kuzminski
f689a025ce vcs: use proper attributes/inits on base and child classes. 2018-02-20 17:47:18 +01:00
Marcin Kuzminski
141575541f core: properly report 502 errors for gevent and gunicorn.
- gevent+gunicorn doesn't raise normal pycurl errors
2018-02-09 10:52:58 +01:00
Marcin Kuzminski
b2c7cd47ea pull-request, git: add option to skip --ff-only 2018-02-07 18:26:38 +01:00