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
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
Milka Kuzminski
72085d16b0
pull-requests: fixed problems with unicode characters in branches.
2021-04-08 16:59:58 +02: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
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
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
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
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
337400c423
git: fixed py3 compat for submodule read.
2019-09-25 19:32:20 +02:00
Marcin Kuzminski
e9cf83badc
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation.
...
In some cases when there are no longer any files this caused error since filediff wasn't present.
In addition this generated wrong ids since it used a last-defined attribute on a for loop.
Fixes #5567
2019-09-25 10:33:00 +02:00
Marcin Kuzminski
21f849c51b
mercurial: use commit_ids for parents/children instead of revisions which could change when evolve is used.
2019-09-22 18:32:24 +02:00
Marcin Kuzminski
70d5bb346a
shadow-repos: skip init of full repo to generate shadow repo path.
2019-09-20 21:00:31 +02:00
Marcin Kuzminski
d28e645e15
maintainance: added update caches to mercurial.
2019-09-11 12:02:03 +02:00
Daniel Dourvaris
ff0c66acf2
diffs: handle paths with quotes in diffs.
2019-08-26 21:49:06 +02:00
Daniel Dourvaris
e9ca6badf7
files: ensure we ask hg vcsserver check for largefiles for path and commit, else we cache path that might become a LF node later on
2019-08-23 20:56:03 +02:00
Daniel Dourvaris
38b8c11ea5
vcsserver: made binary content check be calculated on vcsserver
...
- now can use caching
- for git/hg there are faster dedicated functions instead of detecting the content
2019-08-23 20:31:43 +02:00
Daniel Dourvaris
de8ff5bcfa
file-nodes: added streaming remote attributes for vcsserver.
...
- this will enable doing a streaming raw content or raw downloads of large files without transfering them over to enterprise for pack & repack using msgpack
- msgpack has a limit of 4gb and generally pack+repack for 2gb is very slow
2019-08-23 19:09:59 +02:00
Marcin Kuzminski
0ae89b9907
files: only check for git_lfs/hg_largefiles if they are enabled.
...
- this speeds up fetching of files if they are not LF and very big.
2019-08-23 14:37:56 +02:00
Marcin Kuzminski
fc1ae1d057
gists: fixed cache problems and updated ui
2019-07-24 11:29:06 +02:00
Marcin Kuzminski
5b07354763
git: replaced some raw subprocess commands with dedicated GIT vcsserver commands.
2019-07-19 13:16:44 +02:00
Marcin Kuzminski
924578c2db
mercurial: use hash as vcsserver parameters instead of ints which can change even on a server side when a strip is performed.
2019-07-18 17:19:14 +02:00
Marcin Kuzminski
928652312a
core: added more accurate time measurement for called functions
2019-07-17 16:28:41 +02:00
Marcin Kuzminski
cab16efa4e
vcs: optimized pre-load attributes for better caching.
2019-07-17 13:50:26 +02:00
Marcin Kuzminski
0b076e1f65
caches: updated cache backend to new vcsserver caches implementation.
2019-07-17 00:14:26 +02:00
Marcin Kuzminski
ccfa86d740
git: adjusted code for new libgit2 backend
...
- made @CachedProperty use a custom decarator that can do invalidations. This
is required for tests
- made few cleanups of code since we use a simpler libgit2 backend now
- removed some unused obsolete code
2019-07-12 17:39:32 +02:00
Marcin Kuzminski
94390f644f
logging: fixed some log calls.
2019-07-11 20:23:24 +02:00
Marcin Kuzminski
0f7b21778d
tests: fixed compare page and related tests.
...
- wrong display of range
- still unfixed problem with initial compare for GIT
- makes the result more consistent now with better display for new UI.
2019-07-01 10:42:55 +02:00
Marcin Kuzminski
929deba1dd
tests: fixing tests for pull-requests and changelog(commits)
2019-06-28 14:24:57 +02:00
Marcin Kuzminski
634590913e
commits: updated logic of in-memory-commits, fixed tests and re-architectured a bit how commit_ids are calculated and updated.
...
- it's all part of recent updates on performance, and new commit pages
2019-06-11 12:59:37 +02:00
Marcin Kuzminski
ee06461a89
changelog: rename changelog to commits pages
2019-06-06 13:02:10 +02:00
Marcin Kuzminski
6a2e2f0b94
commits: re-implemented fetching a single commit for git case.
...
- faster using always cache if available
- fixed problems after changes of __bool__ of repo object which always rebuilt cache and this is not the case now
- make few error messages better
2019-06-10 12:28:47 +02:00