Commit graph

251 commits

Author SHA1 Message Date
RhodeCode Admin
84412730da vcs: added headers into stream call too 2023-02-03 10:35:08 +01:00
RhodeCode Admin
455020bf4a vcs-client: report more data about the call for better request tracking 2023-02-02 23:47:08 +01:00
RhodeCode Admin
d300144665 repos: cleannup and fix landing-ref code.
with latest git update this exposed a bug when we allowed to set references like tip for git repos
now the defaults are loaded from a single place controlled by default branch for git.

Repos without master are now working just fine with new git and new logic.
2023-01-18 22:10:40 +01:00
RhodeCode Admin
02cdf6fd78 caches: added path check to cached methods for faster git repo checks 2022-12-19 15:20:57 +01:00
RhodeCode Admin
d04fb901d3 caches: updated cache sanitizer to remove any non-ascii chars 2022-10-27 15:32:21 +02:00
RhodeCode Admin
c46715693f caches: cache ctx_description on local cache on 2022-10-16 22:30:13 +02:00
RhodeCode Admin
69e017757a caches: use also local cache branch as it used very much 2022-10-15 08:01:41 +02:00
RhodeCode Admin
dc3192df43 http_client: some reformatting 2022-10-13 12:53:55 +02:00
RhodeCode Admin
94c141d6a4 caches: fix id sanitizer. 2022-10-10 12:30:07 +02:00
RhodeCode Admin
39e6e12be3 caches: fixes the file-store backend to use serialized names for filename cache of vcsserver.
Using ones with '/' would crash the backend
2022-10-06 10:26:43 +02:00
RhodeCode Admin
093cf251d5 caches: make sure we init caches on repo names withou '/' to not create a new cache subpath 2022-09-01 22:00:13 +02:00
RhodeCode Admin
ce7e048a7d git: allow overriding default master branch with an env variable. 2022-08-11 09:39:24 +02:00
RhodeCode Admin
86f1961de4 caches: invalidate cache on remote side from repo settings alongside local cache. 2021-12-16 14:26:38 +01:00
RhodeCode Admin
b7718f5e2d vcs-cache: enable more methods, and fix arguments calls 2021-12-06 10:30:22 +01:00
RhodeCode Admin
2b35e8af0d vcs-call-cache: controll via hidden .ini flag 2021-12-03 15:17:11 +01:00
RhodeCode Admin
aedc41d96a vcs: experimental local cache for methods 2021-12-01 14:17:51 +01:00
Milka Kuzminski
72085d16b0 pull-requests: fixed problems with unicode characters in branches. 2021-04-08 16:59:58 +02:00
Milka Kuzminski
1df8822469 largefiles: added fix for downloading largefiles without an extension in name. 2021-03-25 21:46:25 +01:00
Milka Kuzminski
c0508d2945 git: fix for unicode branches 2021-03-18 15:26:51 +01:00
Milka Kuzminski
723ccff72e git: fix lookups.
- prioritize referenace names over numerical ids
- numerical ids are supported as a fallback if ref matching is unsuccessful.
2021-03-17 17:55:02 +01:00
Milka Kuzminski
2cc353de2c backends: use reference explicitly to properly translate GIT references to commits such as numeric branches 2021-03-16 23:18:52 +01:00
Milka Kuzminski
b0a5210748 merges: fixed excessive data saved in merge metadata that could not fit inside the DB table.
- fixes #5651
2021-01-18 22:17:00 +01:00
Milka Kuzminski
6dbf7d6dae exceptions: fixed problem with exceptions formatting resulting in limited exception data reporting. 2021-01-18 22:10:00 +01:00
Milka Kuzminski
98901bb75e exc: fixed exceptions prefix (again) 2020-12-21 17:17:24 +01:00
Milka Kuzminski
331be00be4 exceptions: fixed truncated exception text 2020-12-09 09:19:02 +01:00
Milka Kuzminski
51727053de archives: optimize performance of repo archive option by delegating all logic to vcsserver.
- sending GBs of data over the wire was slow and very memory consuming
2020-10-19 14:53:21 +02:00
Milka Kuzminski
78a5bc6f12 exceptions: improved reporting of unhandled vcsserver exceptions 2020-10-19 09:47:59 +02:00
Milka Kuzminski
130b6f4574 archvies: allowing to obtain archives without the commit short id in the name for better automation of obtained artifacts. 2020-10-18 17:12:34 +02:00
Marcin Kuzminski
c3f059ebc6 observers: code cleanups and fixed tests. 2020-10-11 22:16:08 +02:00
Marcin Kuzminski
e78b5fc1ee pull-requests: limit the ammount of data saved in default reviewers data for better memory usage
- fixes #5633
2020-10-07 11:26:24 +02:00
Daniel Dourvaris
ca1ac56a3b downloads: added more archive options that we support. Exposing this to users so they actually
know we support more then .zip downloads.
2020-07-16 12:37:18 +02:00
Marcin Kuzminski
3ca5ca1105 pull-requests: changed the order of close-branch after merge, so we don't leave open heads.
Branches will be closed, and then merged based on the close commit. This is a proper and recommended
workflow for feature branches and close option.
2020-07-09 13:09:14 +02:00
Marcin Kuzminski
293a3535ae pull-requests: fix way how pull-request calculates common ancestors.
- fixes #5561
- added new preview for size (commits/files) of PRs before opening, this is now based on the special logic that calculates common ancestor and has access to preview diff
- store common ancestor in DB so updates of pull-requests are consistent
2020-05-08 08:43:51 +02:00
Marcin Kuzminski
4b277c70fe git: fixed readme searcher for libgit2 2020-05-14 09:40:41 +02:00
Daniel Dourvaris
6da9683ece svn: fixed problem with special characters inside subdirectories. 2020-05-12 20:38:46 +02:00
Daniel Dourvaris
fcd530ecfe pull-requests: add information about changes in source repositories in pull-request show page.
- fixes #5611
2020-04-21 21:50:36 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
466826a84a hooks: added new hooks for comments on pull requests and commits.
- allows writing custom actions on top of comments
- new rcextension hooks
- organized and renamed some hooks
- new helpers for rcextensions
- fixes #5583
2020-04-15 18:00:59 +02:00
Marcin Kuzminski
4de6dd537c pull-requests: fixed case for GIT repositories when a merge check failed due to merge conflicts the pull request wrongly reported missing commits.
- we're now searching for dangling commits in a repo that has them and cannot see them because of failed merge checks.
- pull-request: will save metadata during merge simulation so merge conflicts are permanently stored, and showed to all users.
2020-04-08 11:17:10 +02:00
Marcin Kuzminski
bd9e5dc1c3 api: exposed modified added/modified/deleted functions of commit to return only paths.
This combined with full text search build for certain repositories that each commit
contains lots of file changes results in *huge* (10x in some cases) performance gain.
2020-03-16 15:09:45 +01:00
Marcin Kuzminski
54a47cd524 git: use safe configparser for git submodules to prevent from errors on submodules with % sign.
- This is treated as interpolation sign and can cause errors on regular ConfigParser instance.
2020-02-20 11:28:18 +01:00
Marcin Kuzminski
82dddbb8b2 file-store: use our own logic for setting content-type. This solves a problem
when previously used resolver set different content-type+content-encoding which
is an incorrect behaviour.
2020-02-18 16:05:30 +01:00
Marcin Kuzminski
d9380269dd maintainance: run rebuildfncache for Mercurial. 2020-01-21 10:19:29 +01:00
Daniel Dourvaris
535f4541ef mercurial: fix deprecation warnings on using exc.message attribute. 2019-12-04 20:54:31 +01:00
Marcin Kuzminski
0bed1e9849 git: fixed issue with git submodules detection. 2019-12-03 14:59:06 +01:00
Marcin Kuzminski
ef0be3b6e8 pull-requests: added nicer formatting for merge conflicting files 2019-11-19 16:38:56 +01:00
Marcin Kuzminski
1eb782ad15 pull-requests: expose unresolved files in merge response. 2019-11-15 01:00:13 +01:00
Daniel Dourvaris
836aa041be pull-requests: change the naming from #NUM into !NUM.
- We'll later on enable global pattern matching and from now on refercing a pr should be
used with an ! not to confuse #NUM which is tickets/issues
2019-11-06 12:24:42 +01:00
Marcin Kuzminski
7cf63ac4ad nodes: expose line counts in node information. This would be used in full text search 2019-10-01 15:19:58 +02:00
Daniel Dourvaris
337400c423 git: fixed py3 compat for submodule read. 2019-09-25 19:32:20 +02:00