Commit graph

101 commits

Author SHA1 Message Date
Marcin Kuzminski
7e65f0e21d exceptions: improve handling of exception that are unhandled.
- inject traceback information into unhandled exceptions.
2017-10-23 20:43:19 +02:00
Marcin Kuzminski
0baf293f82 files: remove rigth-to-left override character for display in files.
This allows faking the name a bit, we in this particular place want to
skip the override for enhanced security.
2017-10-10 10:46:54 +02:00
Marcin Kuzminski
862e0c122b commits: hide evolve commits. Fixes #5392 2017-10-03 16:37:39 +02:00
Marcin Kuzminski
3718a47d3f changelog: fix and optimize loading of chunks for file history.
- load-next/prev wasn't working
- make sure pagination works as expected
- speed up certain actions by pre-loading more attributes
2017-09-27 13:21:57 +02:00
Marcin Kuzminski
198094e646 mercurial: updated logging and function calls. 2017-08-24 18:49:20 +02:00
Marcin Kuzminski
bffc3ecda9 git: added identify command for checking the current checkout commit 2017-08-24 18:44:31 +02:00
Marcin Kuzminski
990994942d pull-requests: use close action with proper --close-commit solution.
- Mercurial settings are no long as LABS
- Unified some code between GIT and HG on rebase/close/delete feature branches
2017-08-24 22:36:34 +02:00
Mathieu Cantin
761e973359 mercurial: Add option to close a branch before merging 2017-08-08 13:46:42 -04:00
Marcin Kuzminski
ab16b87482 http: ported old depracated retry format for http client. 2017-07-26 12:39:31 +02:00
Marcin Kuzminski
5184f34ead svn: don't raise duplicate exception. The function already does that. 2017-07-17 14:19:22 +02:00
Marcin Lulek
cb6d81f435 security: escape flash messaged VCS errors to prevent XSS atacks. 2017-06-26 14:48:15 +02:00
Marcin Kuzminski
d0e3f7b137 maintenance: added svn verify command to tasks to be able to verify
the filesystem and repo formats.
2017-05-26 13:02:12 +02:00
Marcin Kuzminski
4801f5f8ca mercurial-evolve: enable evolve setting on repositories. 2017-05-10 18:33:59 +02:00
Marcin Kuzminski
9473470c8a backends: make sure the NoNode error uses safe representation of path
to avoide unicode errors.
2017-05-09 11:11:39 +02:00
Marcin Kuzminski
dabc592890 pull-request: fixed typo in wrong ref type error, and added which
refs are actually allowed.
2017-04-24 16:36:28 +02:00
Marcin Kuzminski
15fc2d8a48 mercurial: show phases status in changelog.
- ref #5265
2017-04-20 20:56:16 +02:00
Marcin Kuzminski
d321c7d65d nodes: fetching largefiles content is commit independent because the pointes is
unique id itself.
2017-04-12 20:54:32 +02:00
Marcin Kuzminski
91c104ae49 largefiles: enabled download of largefiles for git and mercurial from web interface.
- fixes #2817
2017-03-27 14:00:36 +02:00
Marcin Kuzminski
bb273b4b2b git: improve logging of git remote commands. 2017-03-23 15:16:33 +01:00
Marcin Kuzminski
ae3b38d628 git-lfs: create default LFS storage on new installation
- ref #4635
2017-03-18 12:28:23 +01:00
Marcin Kuzminski
0b8e1a6a6f mercurial: refactor how we fetch default largefile store.
- helps further changes on making this editable
- makes it more explicit how we fetch those settings
2017-03-17 21:57:05 +01:00
Marcin Kuzminski
5f5984f20a mercurial: enabled support of verify command. 2017-03-16 15:06:17 +01:00
Marcin Kuzminski
dbb53dfceb system-info: expose workers of vcsserver in system info data. 2017-02-23 21:33:49 +01:00
Marcin Kuzminski
aa55532833 backends: make HG repos throw same kind of CommitDoesNotExist errors like other backends. 2017-02-08 21:30:01 +01:00
Marcin Kuzminski
0e8868ec47 mercurial: fixed code for new ancestor code available in vcsserver. 2017-02-08 00:16:46 +01:00
Marcin Kuzminski
f8f9bdc988 http-backend: catch errors from HTTP calls that are not raising exceptions, but
return non 200 exception codes.
2017-02-07 16:16:42 +01:00
Marcin Kuzminski
3d3f2db34a core: removed pyro4 from Enterprise code. Fixes #5198 2017-02-07 15:58:49 +01:00
Marcin Kuzminski
a06ed60656 vcs-core: add a shadow-repo extractor for pull-requests, and git objects. 2017-01-23 22:53:53 +01:00
Marcin Kuzminski
67dfb2f772 vcs: refactor get_lexer for nodes so it can be used in external code. 2017-01-25 16:09:47 +01:00
Marcin Kuzminski
07a595c030 vcs: added possibility to pre-load attributes for FileNodes. 2017-01-25 12:45:05 +01:00
Marcin Kuzminski
c50ec095c3 hg,git: change method of extracting last_change to use actualy date object
instead of re-parsing it again.
2017-01-24 15:26:14 +01:00
Marcin Kuzminski
3ef31a1cc1 svn: date-parser should use UTC dates to be consistent with other backends. 2017-01-24 11:26:15 +01:00
Marcin Kuzminski
9effdf9ee6 git: show stderr only if it happen for calling GIT commands 2017-01-10 10:42:46 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
e44090dfe8 diffs: compare overhaul.
- made compare and commit range pages more consistent with other commit diff pages
- removed mergerly, closes #4665. Old diff2way is replaced by new diffs with
  side-by-side mode.
- cleanup button behaviour on compare page. Added help text and
  generally improved UX
- switched file-diffs to compare page with file filter. Part of #4000
- added collapse/expand commits buttons in compare views.
2016-12-22 23:48:05 +01:00
Marcin Kuzminski
90deb7d32c vcs-server: expose remote tracebacks from http backend using the Pyro4AwareFormatter. 2016-12-21 12:43:47 +01:00
Marcin Kuzminski
9d8634a618 pull-requests: expose version browsing of pull requests.
- show nav for browsing each version of pr
- show detailed changes for each of version
- update comment template to indicate the changes were due to update of a pr
2016-12-19 17:38:22 +01:00
Marcin Kuzminski
eda3a27331 api: implemente missing get_repo_refs api backend. Fixes #4677 2016-12-16 16:15:18 +01:00
Marcin Kuzminski
6c9444d018 vcs: raise better exception if file node history cannot be extracted.
reference: #4664
2016-12-01 17:50:10 +01:00
Marcin Kuzminski
71358e3f42 backends: fix potential unicode problems on debug logging. 2016-11-23 11:56:21 +01:00
Marcin Kuzminski
01518d41f6 backends: don't detect backends when initializing db based vcs-instance.
This skips some calls back to vcsserver.
2016-11-17 20:00:16 +01:00
Marcin Kuzminski
f76d8139cb vcs-http: explicitly pass in vcs-type into vcsserver. 2016-11-17 19:25:09 +01:00
Marcin Kuzminski
c68c339c0b system-info: fetch vcs settings from vcsserver. Fixes #4276
- redone the system info page. Errors/Warnings now show next to the
data, and also show up in API call.
- implemented fetching of git/hg/svn version from running vcsserver
- implemented fetching of vcsserver version from itself
- added more warnings/errors detection on RAM/Inodes etc
- few cleanups
2016-11-14 21:14:29 +01:00
Marcin Kuzminski
edcc18406a http: better reporting of msgpack unpack errors. 2016-11-14 21:10:39 +01:00
Martin Bornhold
fc63a03903 subrepo: Handle subrepo merge errors. 2016-10-28 13:07:35 +02:00
Martin Bornhold
fe841ddc63 subrepo: Add exception for subrepo merge errors. 2016-10-28 13:07:21 +02:00
Martin Bornhold
ba66c9ce61 subrepo: Add merge failure reason code ad message for subrepo merge conflicts. 2016-10-28 13:06:55 +02:00
Martin Bornhold
0236ad15ca vcs: Deprecate generic missing commit merge error reason.
There are two more specific error reasons (target/source ref missing)
which should be used instead.
2016-10-27 12:50:59 +02:00
Martin Bornhold
66a336156c vcs: Use more specific merge error reason (either target or source ref missing) 2016-10-27 12:50:02 +02:00
Martin Bornhold
66c56a50d1 vcs: Add enumeration for pull request update failure reasons. 2016-10-27 10:21:33 +02:00