Commit Graph

86 Commits (6d7d7ebbfa6d9eabc71809b8ecbbabb63188c699)

Author SHA1 Message Date
Thomas Keller 470a961a80 Add syntax highlighter support for h, hh and hpp (fixes issue 567) 2010-11-17 00:06:18 +01:00
Thomas Keller c0ccdc768a add a couple of file extensions which are supported by our in-tree version of prettyfy (closes issue 490) 2010-10-31 18:18:20 +01:00
Thomas Keller fe001abd26 Rework the way IDF's SCM interface provides downloadable snapshots.
Instead of returning a command which gets executed and which should
pass through / stream its output data to the client, we're just
returning an instance of Pluf_HTTP_Response. This is needed, because
some SCMs, most noticable monotone, have no locally executable command
to provide a snapshot archive (and probably never will for our kind
of setup).

We therefor added a little BSD-licensed class "ZipArchive" which allows
the creation of pkzip-compatible archives on the fly by letting it eat
the file contents directly feed from the (remote) stdio instance.
Download performance is ok and lies between 15K/s and 110K/s, but at
least we do no longer block the browser while we pre-generate the zip
file server-side.

Thanks to Patrick Georgi for all his work!
2010-10-30 21:52:40 +00:00
Thomas Keller c807c4b734 Add *.pas ([object] pascal) to the list of supported source extensions 2010-10-22 16:11:04 +02:00
Thomas Keller b30bdc9833 While for allowed upload extensions the user was hinted to the
need of having to start the list with a space, here it was actually
needed code-wise. I rewrote the code so the space was not needed
and the documentation follows the actual behaviour.
2010-10-14 12:13:38 +00:00
Thomas Keller 85df9e5ab2 move IDF_View_Source_Precondition into a separate class file 2010-09-02 12:22:59 +00:00
Thomas Keller 21cdf60c31 Introduce a more subtle concept of validity when it comes to revision
indentifiers in IDF - the SCM function isValidRevision has been replaced
by a validateRevision() method which returns one of three states,
valid, invalid or ambiguous.
The source view can then act accordingly and display disambiguate view
for the latter, so the user can select for which revision he actually
wants to execute the requested action. Also, invalid revisions now lead
to another separate view, telling the user that it is invalid / does
not exist and pointing him optionally to the help page where he can read
further how to access his repository to push the first changes into.
(partially resolves issue 525)
2010-09-01 13:13:52 +00:00
Thomas Keller 187365db76 IDF_Scm::isValidRevision() only ever takes one argument 2010-08-30 21:50:25 +00:00
Thomas Keller 3b53ceedcd * Monotone.php (IDF_Scm_Monotone): basic_io values need to be unescaped; implement getChangeLog()
* Monotone.php (IDF_Scm_Monotone_Stdio): add support for multiple, equally named options
* Source.php, commit.html: split-off the global commit template (which had some separate code already for SVN) and adapt the left blocks for mtn to shorten branch and tag names just like we do everywhere else
2010-05-01 01:05:54 +02:00
Thomas Keller 995f1a13c3 Add a new view modifier which allows the shortening of long strings such as branch or tag names. Use that in the tree view and display the full name in a title tag. 2010-04-29 23:35:57 +02:00
Loic d'Anterroches 119faf55cf Added ticket 419, render for .net files. 2010-04-12 20:43:04 +02:00
Loic d'Anterroches 73641a03d5 Fixed issues 368 and 354, access to files with special characters. 2010-01-20 22:33:53 +01:00
Mehdi Kabab 8050463a12 Added ticket 271, support of the Git tags. 2009-11-06 16:12:54 +01:00
Loic d'Anterroches 838645463d Remove the PHP 5.3 deprecated split function. 2009-09-24 20:40:22 +02:00
Loic d'Anterroches 14e074b122 Fixed to prevent the display of an invalid tree. 2009-08-20 15:14:42 +02:00
Loic d'Anterroches dc6f25cdef Fixed to handle the case of bad commit. 2009-07-12 22:13:52 +02:00
Loic d'Anterroches c0dfd6b5dc Fixed issue 180, can't select branches containing / character in git projects. 2009-07-08 13:49:16 +02:00
Loic d'Anterroches c366124917 Fixed the case of accessing the log of an unavailable project 2009-06-26 20:52:56 +02:00
Loic d'Anterroches a15107558c Fixed issue 235, need consistent use of file and fullpath in the SCM backend 2009-06-19 15:51:31 +02:00
Loic d'Anterroches 2f0156e63b Fixed to correctly get the main branch in case of error. 2009-06-09 08:42:59 +02:00
Loic d'Anterroches 54b37ac5b6 Fixed issue 226, branches are displayed only on source tree view. 2009-05-26 21:59:02 +02:00
Loic d'Anterroches bc434504b1 Fixed issue 210, sub-tabs links not follows the active branche in Source view. 2009-05-26 21:47:54 +02:00
Adrien Bustany 2c9cf96245 Fixed issue 224, add Vala support to source browser. 2009-05-26 11:33:20 +02:00
Loic d'Anterroches d31cd2aef4 Added the latest fixes for the new backend. 2009-05-25 14:18:48 +02:00
Loic d'Anterroches f55769a946 Improved the Mercurial backend. 2009-05-25 12:16:34 +02:00
Loic d'Anterroches a3f40447c0 Continued the refactoring of the Subversion backend. 2009-04-27 11:39:19 +02:00
Loic d'Anterroches cf5acfb669 Base refactor of the Subversion backend. 2009-04-26 11:57:21 +02:00
Loic d'Anterroches 7c502b1745 Continued the SCM backend refactor.
The new backend is near completion.
2009-04-25 16:24:40 +02:00
Loic d'Anterroches 86da0c0eed Added a first version of the new SCM backend. 2009-04-21 14:13:44 +02:00
Mehdi Kabab 194a081c90 Added the highlighted extensions as text extensions. 2009-04-07 11:38:24 +02:00
Loic d'Anterroches 08a03f0629 Fixed issue 159, Problem with display of source files with extension of c, etc.
Updated the code documentation to avoid confusions.
2009-03-26 12:04:16 +01:00
Patrick Georgi ef93d2da0a Fixed issue 143, Makefile not displayed as text. 2009-03-03 10:12:42 +01:00
Loic d'Anterroches d1b139bb30 Better redirection to have canonical URLs. 2009-02-16 22:18:09 +01:00
Loic d'Anterroches 37f94d8581 Added smarter handling of trailing slash in the source view. 2009-02-16 21:33:19 +01:00
Loic d'Anterroches 743a3f312c Added a control to avoid redirecting to an inexisting branch. 2009-01-25 20:48:02 +01:00
Loic d'Anterroches 38ac214d55 Fixed bug in the cache resulting in errors in the tree view.
The cache was not per project but one cache for all the projects.
2009-01-23 15:06:57 +01:00
Loic d'Anterroches cadbc040a1 Fixed issue 101, better information for the Subversion login/password.
A nice little help icon is providing more information for the checkout.
This for all the backends.
2009-01-22 11:12:41 +01:00
Loic d'Anterroches 3fbac71f04 Fixed to redirect the user to the home if no available branch.
This is a short term fix. We need to create a "howto" page for each kind
of repository to display it when the user want to access a repository
with nothing in it.
2009-01-21 19:56:47 +01:00
Loic d'Anterroches 8cfc5ec026 Fixed the download of a commit diff file.
Note, we need to stream this commit diff like for the archive for
performance reasons.
2009-01-20 16:33:36 +01:00
Loic d'Anterroches e159185465 Restructured the control of the large commits. 2009-01-20 16:26:36 +01:00
Loic d'Anterroches b2ec9bb9e8 Added cache at the view level when displaying the source tree. 2009-01-18 10:17:39 +01:00
Loic d'Anterroches 835eab9c24 Fixed issue 93 by preventing the display of a large commit diff.
Still needs to implement the equivalent for subversion and mercurial,
maybe with a simple command $scm->isCommitLarge($commit).
2009-01-17 18:46:26 +01:00
Loic d'Anterroches 61bc7a70b6 Solved most of issue 93 by not requesting diff content most of the time.
Still need to handle the display of a large commit in the individual
commit page.
2009-01-17 18:10:55 +01:00
Loic d'Anterroches 2078d69a83 Added ticket 86, preview attached files to issues. 2008-12-30 18:00:59 +01:00
Loic d'Anterroches d11b107ce1 Added more text extensions and give the ability to add in the config.
Using the 'idf_extra_text_ext' configuration variable you can add more
text extensions.
2008-12-17 15:08:51 +01:00
Loic d'Anterroches e282c65bb0 Added more text extensions. 2008-12-17 14:34:55 +01:00
Loic d'Anterroches 6c5da01319 Added the link to the author profile when possible. 2008-12-05 14:51:51 +01:00
Loic d'Anterroches a1eeb12516 Added ticket 80, scm login integration with database login.
Based on the login for Subversion and the email address for git and
Mercurial.
2008-12-05 11:34:02 +01:00
Loic d'Anterroches 57a4ea7cb0 Fixed ticket 76, add the attached files in the issue notification emails.
Beware that you need to update your configuration file to add the new
template filter.
2008-11-30 10:52:06 +01:00
Loic d'Anterroches 28b650f841 Added the ability to configure the path to the mime types db. 2008-11-26 11:12:25 +01:00