Commit graph

31 commits

Author SHA1 Message Date
lisaq
6b27de7eff vcs: implement id for svn commit and EmptyCommit fixes #4136 2016-08-10 23:07:02 +02:00
Martin Bornhold
e61c84a72e config: Use hooks protocol and direc calls seting from vcs settings module. 2016-08-08 08:29:35 +02:00
Daniel Dourvaris
1a842e15d2 scm: change ._get_content() to .raw_bytes attribute to file nodes to
allow getting raw bytes instead of text content of a file and added
.md5 and .is_binary attributes to file nodes
2016-07-26 20:47:23 +03:00
Martin Bornhold
b4ce022c69 vcs: Remove unused code from get_scm function.
No code seems to use these arguments anymore so it's better to remove
them and simplify the code by removing unsused code paths.
2016-07-21 09:02:27 +02:00
Martin Bornhold
0c80668486 vcs: Refactor the get_repo function.
Goal was to not use the search_path_up argument of get_scm and
include some logic that sits in model.db.Repository in get_scm_instance
method.
2016-07-21 09:00:53 +02:00
Martin Bornhold
7738578914 vcs: Add license header from the origin to geventcurl. 2016-07-21 12:49:44 +02:00
Martin Bornhold
99a93285fe vcs: Implemented a gevent compatible Curl class, part of #4046
This Curl class acts like a wrapper around the original one but uses
the curl multi interface together with gevent's machanisms for synchronization
of threads (greenlets).
2016-07-21 12:51:50 +02:00
Martin Bornhold
a0dd170a39 vcs: Move vcsserver cache invalidation to mercurial backend.
The invalidation is only needed for "writing" mercurial methods.
Previous location covers also "reading" methodas and other vcs backends.
2016-07-11 10:43:48 +02:00
Martin Bornhold
485c007798 http-protocol: Invalidate the VCSServer cache when calling a writing method. 2016-07-08 16:38:43 +02:00
Martin Bornhold
f0581979ba pyro4: Adapt pyro4 RemoteRepo to have the same API as http RemoteRepo class. 2016-07-08 16:02:29 +02:00
Martin Bornhold
5499e99cdb http-protocol: Add a method to invalidate the VCSServer cache.
This method allows to invalidate the cached repository objects in the VCSServer.
It generates a new UUID which is used by the VCSServer as cache key.
2016-07-08 16:01:35 +02:00
Martin Bornhold
bd289ed8c7 pep8: Cleanup of import statements. 2016-07-08 10:18:55 +02:00
Martin Bornhold
0f767f23a4 settings: Remove obsolete VCS config value HG_USE_REBASE_FOR_MERGING 2016-06-27 13:30:27 +02:00
Martin Bornhold
1824a54c6d settings: Use the new 'use_rebase' argument to decide between rebase or merge. 2016-06-27 13:18:25 +02:00
Martin Bornhold
488bd2df2f settings: Add argument to select rebase as merge strategy. 2016-06-27 13:16:10 +02:00
Martin Bornhold
dec51f1669 pyro: Slightly improved log message and comment. 2016-07-05 09:37:57 +02:00
Martin Bornhold
64893dfad5 pyro: Return new proxy instances if called from outside of a request context.
This allows to run code that uses the pyro connection to the VCSServer
but does not execute from within a request context, e.g. invoke tasks.
2016-07-05 09:37:13 +02:00
Martin Bornhold
ed4653ad21 pyro: Make request argument mandatory. 2016-07-04 15:44:15 +02:00
Martin Bornhold
20205cf371 pyro4: Create pyro proxy factory which returns instaces scoped by the request. 2016-07-04 16:35:03 +02:00
Martin Bornhold
6b84fcdb1d threading: Use the curl session factory. 2016-06-22 10:18:33 +02:00
Martin Bornhold
4a1c60fba2 threading: Add factory that creates curl session for each thread.
When creating a repo with an import url pointing to another repo on the same enterprise instance
we call the vcssserver to check the url. The vcsserver then calls to enterprise to verify the url.
This leads to two threads using the same cur session.
2016-06-22 10:18:06 +02:00
Daniel Dourvaris
bf2e56d06f bugfix: missing import 2016-06-09 15:38:48 +03:00
Johannes Bornhold
e756b3e5f4 hg: Log original exception when doing the merge with rebase. 2016-06-09 12:04:59 +02:00
Daniel Dourvaris
bf510fd33c vcs: make commit datetimes utc 2016-06-09 05:20:58 +03:00
Johannes Bornhold
5eae0d6f48 hg: Fix up logging message for local push 2016-06-09 00:18:56 +02:00
Johannes Bornhold
1b4ce0b7a5 hg: Include state of dry_run in merge failure logging. 2016-06-08 23:57:08 +02:00
Johannes Bornhold
f42158291f hg: Clean up unused variable 2016-06-08 23:50:12 +02:00
Johannes Bornhold
0410a1f483 hg: Increase logging around merge status check 2016-06-08 23:26:40 +02:00
Daniel Dourvaris
545fe36195 bugfix: missing import 2016-06-01 16:27:02 +03:00
Daniel Dourvaris
dbb993b0d4 logging: log the original error when a merge failure occurs 2016-05-31 16:08:21 +03:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00