806e69b858Don't let sync git fail on ssh keys with no comment field (references: issue 531 and issue 545)
Thomas Keller
2010-10-07 11:56:52 +00:00
a29a2a0fa4The connection list view could never work with this messy backend.
Thomas Keller
2010-10-07 01:05:15 +00:00
4951498c0bIgnore pseudo diff stanzas which mention binary files.
Thomas Keller
2010-10-06 21:37:53 +00:00
97ea828532Use a persistent cache through Pluf_Cache to speed up cert queries.
Thomas Keller
2010-10-04 15:42:21 +00:00
d539eaf64b- _getLastChangeFor(): drop that, no longer needed - getTree(), getPathInfo(): use the new extended manifest format and save the calls to query file sizes from contents as well as the calls to determine the revision in which a file changed at last
Thomas Keller
2010-10-04 15:22:57 +00:00
90edbf0d8bTweak the basicio parser so that it properly handles multi-value lines with hashes (lines like symbol [hash] [hash] are still not handled, but aren't outputted from any command either as of now).
Thomas Keller
2010-10-04 15:20:53 +00:00
0c575ccc74If a symbol is printed without a value list at the very end of a basic_io dump, we might access a non-existing character position. This has been fixed and the string length calculation is now only done once.
Thomas Keller
2010-10-03 22:23:08 +00:00
eebdc5ad12IDF_Scm_Monotone::getCommit() separate the first line of a commit from the rest and write the rest in full_message - just like we do it for log and everything else. This is ugly, really ugly, because it assumes something on the format of a commit message, which might not be true at all for some project, but this is something Loic has to decide (see also issue 491 and issue 535)
Thomas Keller
2010-09-28 21:37:26 +00:00
617589f41bReorganize and expand the help of the monotone plugin. Make the commentary in idf.php-dist less verbose.
Thomas Keller
2010-09-17 03:11:36 +02:00
50638c768fEnsure that the SyncMonotone plugin does not throw around errors in case of a local (non-usher) monotone setup.
Thomas Keller
2010-09-17 02:36:48 +02:00
29b8bf8a4eSome revisions might not carry a branch cert (yet), because they're part of another branch whose certs haven't been pushed into the server yet, so we need to skip these revisions while going back in time for the changelog. The initial revision however must carry a branch cert, otherwise we have nothing to "follow".
Thomas Keller
2010-09-15 08:46:10 +00:00
42936cc51dMark the submenu item "Open Issues" active when its active (partially resolves issue 536)
Thomas Keller
2010-09-14 23:14:29 +00:00
b138548a10* check if the project actually uses mtn as scm for the membershipsUpdated signal * code cleanup and simplification
Thomas Keller
2010-09-14 22:58:34 +00:00
7d5ba6248eMerge branch 'develop' of projects.ceondo.com:indefero into develop
Thomas Keller
2010-09-14 22:34:57 +00:00
36a58dcae2* update the permissions on IDF_Project::membershipsUpdated - listen to the same signal also for the initial setup, since the memberships haven't been added at the time the create signal is thrown * my array references goo was slightly stupid (the usage of foreach is of course hazardous in cases like this) * always insert a trailing new line in write-permissions and skip read-in newlines from being processed
Thomas Keller
2010-09-14 22:30:28 +00:00
2106a5fbdcMerge branch 'develop' of projects.ceondo.com:indefero
Thomas Keller
2010-09-14 14:23:18 +02:00
0897c8608fAllow the upload of SSH keys without the optional comment field (fixes issue 531 - thanks William!)
Thomas Keller
2010-09-14 14:22:34 +02:00
a32d6d8265* its late - put_public_key of course needs a specific database * do not throw around exceptions if a key which should be removed is not found in the database
Thomas Keller
2010-09-13 01:13:49 +00:00
0f9f337e66* configure whether or not to set remote client authentication for IDF -> remote_stdio * hook into IDF_Project::preDelete, IDF_Key::postSave and IDF_Key::preDelete * this is all not quite finished, but a big leap forward to completion
Thomas Keller
2010-09-13 00:53:24 +00:00
bb13722a2fbump copyright year
Thomas Keller
2010-09-13 00:51:45 +00:00
77cdbefe0cAdded getter for the stdio instance
Thomas Keller
2010-09-13 00:50:16 +00:00
f68bba1292Be more careful when parsing value lists - in case we process the last line of a stanza which does _not_ close with a newline, we're accessing a not existing string index.
Thomas Keller
2010-09-12 23:18:58 +00:00
37d0ccc728partially resolve issue 492 (at least for the monotone tree view)
Thomas Keller
2010-09-11 00:28:31 +02:00
7557a73014While the dateAgo code internally doesn't seem to care about the argument (unless its not "withal"), its better to fix the spelling here anyways.
Thomas Keller
2010-09-11 00:21:30 +02:00
f3f00dd182Fixed ticket 489, improve the Markdown and wiki syntax documentation.
Loïc d'Anterroches
2010-09-02 14:46:15 +02:00
a2297decfdFixed ticket 486, start to explain how to contribute.
Loïc d'Anterroches
2010-09-02 14:39:09 +02:00
07b2b2f305Merge branch 'develop' of projects.ceondo.com:indefero into develop
Thomas Keller
2010-09-02 12:26:52 +00:00
85df9e5ab2move IDF_View_Source_Precondition into a separate class file
Thomas Keller
2010-09-02 12:22:59 +00:00
f6fc5ae466Merge branch 'develop' of projects.ceondo.com:indefero
Thomas Keller
2010-09-01 13:18:10 +00:00
132c4f6c89Fixed ticket 481, problem with registration link.
Loïc d'Anterroches
2010-09-01 15:17:24 +02:00
21cdf60c31Introduce 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)
Thomas Keller
2010-09-01 13:13:52 +00:00
b4f8cf8c50Corrected grammar in instructions.
Brenda Wallace
2010-09-01 15:06:02 +02:00
f4dbabe8deMerge branch 'master' of git://projects.ceondo.com/indefero
Loïc d'Anterroches
2010-09-01 14:51:33 +02:00
c5c7ebff04Improved the wiki links to have better descripting links.
Matthew Dawson
2010-09-01 14:50:04 +02:00
5d263e78e0its dateago:"without", not dateago:"wihtout"
Thomas Keller
2010-08-31 21:17:09 +00:00
5f4e1da0c8while there _should_ be really a custom application exception, currently there is no such one
Thomas Keller
2010-08-31 21:07:31 +00:00
187365db76IDF_Scm::isValidRevision() only ever takes one argument
Thomas Keller
2010-08-30 21:50:25 +00:00
e26a5c8cdfwaiting usher instances should be stoppable as well
Thomas Keller
2010-08-30 21:29:42 +00:00
a384c60937fix a PHP notice
Thomas Keller
2010-08-30 20:14:03 +00:00
6b4abac08e- PHP doesn't like the $var = <init> kind of initialization and won't return variable references properly, so revert that change again - since we're requiring 0.99 now, we also have to use au generate_key instead of au genkey
Thomas Keller
2010-08-30 13:46:05 +00:00
e789263068- raise required mtn version to 0.99 - add '--key=' to the default mtn arguments in idf.php-dist
Thomas Keller
2010-08-30 12:58:52 +00:00
82aaf43d5d- initial work on a mtn-post-push script which updates IDF's timeline when new revisions arrive. this still needs some more tests, but its a start. - refactor out the monotonerc template from SyncMonotone.php and place it in a separate template file (access control hooks are still missing from there)
Thomas Keller
2010-08-30 11:20:47 +00:00
adae73080csimplify and harden the configuration file writeouts, didn't knew file_put_contents was around for so long already...
Thomas Keller
2010-08-30 09:00:20 +02:00
b648e6f7a7- now that we have to configure usher's configuration file anyway, we can skip the explicit configuration of its host and admin password, as we can directly read that from the configuration file itself - expand the SyncMonotone plugin a bit to where this actually becomes useful, i.e. create an accompanying key for each created database and also add some initial database-specific configuration - update the config docs in idf.php-dist to reflect the changes and add more details about the inner workings of the SyncMonotone plugin
Thomas Keller
2010-08-29 23:01:25 +00:00
194dcad0e3Don't check if the main branch is empty, but let the view code later handle the case where a selector doesn't resolve to at least one revision gracefully (see also issue 525).
Thomas Keller
2010-08-29 22:59:12 +00:00
af3df142d4First attempt on a monotone plugin which creates a new database upon project creation and adds the new server to the running usher instance. If everything goes well, the usher instance is told to reload its configuration, so the new server / database is picked up and started automatically.
Thomas Keller
2010-08-28 23:10:08 +00:00
f2a9518b5csingle quoted newlines of course will not work here... stupid me
Thomas Keller
2010-08-28 22:47:37 +00:00
593240b420implement IDF_Scm_Monotone_BasicIO::compile()
Thomas Keller
2010-08-28 22:03:47 +00:00
8aae0f29d4refactor the basicio parser into a separate utility class (we soon need a compiler part as well)
Thomas Keller
2010-08-28 14:06:17 +00:00
3eb0247b37Fixed to correctly have a type text input.
Loïc d'Anterroches
2010-08-27 08:57:54 +02:00
7f32a5679d* removed type field in IDF_Key on request of Loic and automatically detect and validate raw key data * reworked the parseMonotoneKeyData() function to parse ssh and monotone keys * tweak help texts and exception strings
Thomas Keller
2010-08-24 23:30:12 +02:00
a442fd588eMerge branch 'master' of github.com:tommyd3mdi/indefero-monotone
Thomas Keller
2010-08-24 22:57:52 +02:00
e7ce32fc26Merge branch 'master' of git://projects.ceondo.com/indefero
Thomas Keller
2010-08-24 22:45:28 +02:00
f0a606e5cf* its IDF_Key, not IDF_Keys
Thomas Keller
2010-08-23 09:45:04 +02:00
0c4846c986Adapted monotone's README file and moved it under doc/
Thomas Keller
2010-08-13 11:42:14 +02:00
31e81118ddFollow IDFs coding standards and tweak opening curly braces as well as quoting where possible
Thomas Keller
2010-08-13 11:20:03 +02:00
e47d51d14cAdd the possibility to save mtn public keys per user * src/IDF/Key.php: new column "type" which is either "ssh" or "mtn"; utility functions to query the mtn key name and id as well as all available key types for the current IDF installation * src/IDF/Migrations/16KeyType.php: needed migration script * src/IDF/Plugin/SyncGit/Cron.php: ensure only SSH keys are handled * adapt forms and templates accordingly
Thomas Keller
2010-08-11 23:48:09 +02:00
ce436cc6ecensure the usher section is active when we browse it
Thomas Keller
2010-08-11 23:43:15 +02:00
3d1ac97dc3Correctly uses the private/description from the template project.
Loïc d'Anterroches
2010-08-11 14:50:32 +02:00
7a2065c687Fixed to correctly use the default values if the template project was not fully updated.
Loïc d'Anterroches
2010-08-11 14:42:06 +02:00
9e6c7dad88Fixed to use the private status and the description from the template when creating a project.
Loïc d'Anterroches
2010-08-11 14:12:03 +02:00
4f23ea4dd5Added the ability to create a new project with another one as template.
Loïc d'Anterroches
2010-08-11 13:58:41 +02:00
f25dbd8872Merge branch 'master' of git://projects.ceondo.com/indefero
Thomas Keller
2010-08-07 23:42:13 +02:00
de036920a4* src/IDF/Middlewre.php: add a global template variable "usherConfigured" to denote whether we render links to the usher control functions in the forge administration * src/IDF/Scm/Monotone.php: moved IDF_Scm_Monotone_Stdio into separate file src/IDF/Scm/Monotone/Stdio.php * src/IDF/Scm/Usher.php: new class to query and modify the state of a running usher instance * src/IDF/Views/Admin.php: add actions to query the list of configured servers, edit their status, view their open connections and control the state of the usher as a whole * src/IDF/conf/idf.php-dist: optional usher configuration added; mail address of monotone-users added; spelling changes * src/IDF/conf/urls.php: added needed URLs for usher actions * src/IDF/templates/idf/gadmin/base.html: usher links
Thomas Keller
2010-08-07 23:28:13 +02:00
061c806588Fixed issue 509, indefero wiki do not support strikethrough.
Mehdi Kabab
2010-07-25 13:37:05 +02:00
780267978dbasic test setup works; added tests for isAvailable(), getBranches(), getTags(), inTags(), inBranches(), getTree() and isValidRevision()
Thomas Keller
2010-06-30 00:42:09 +02:00
0ad7f47885first, incomplete version of a basic monotone test driver
Thomas Keller
2010-06-29 16:00:53 +02:00
d2f0bac907* Monotone.php: get inTags() and inBranches() correct - they need to return a list with selectors as keys, otherwise the main menu won't link the active revision, but instead use the main branch * changelog.html, tree.html: shorten the branch / tag output a bit (still ugly to have a fixed output like this, though), link tags by their selector, no longer by their revision ID. We loose some flexibility here, since tags could actually mark different revisions, which are now ignored
Thomas Keller
2010-06-29 09:59:49 +02:00
e46a6fa171link from the changelog view to the changelog view again when another revision is selected
Thomas Keller
2010-06-28 11:46:48 +02:00
7cbc690890use date instead of gmdate, monotone's dates are already UTC
Thomas Keller
2010-06-28 08:47:39 +02:00
a46fd28daeprint the mtn master branch configuration in bold, because it is required when monotone is selected as SCM
Thomas Keller
2010-06-26 00:18:52 +02:00
8decc383aabugfix: do not validate the custom branch field in the project creation formular if we should set the project up with another SCM
Thomas Keller
2010-06-26 00:07:56 +02:00
f3268b3d37uh, we should really share one mtn instance per project and request...
Thomas Keller
2010-06-24 02:27:38 +02:00
4fdf248cb6Merge branch 'master' of github.com:tommyd3mdi/indefero-monotone
Thomas Keller
2010-06-24 02:07:44 +02:00
1fd1e63043* idf.php-dist: rework the documentation of the configuration options and add two scenarios, one with a single, global database and one with multiple project databases and usher as proxy; add an option for additional command line options for the mtn process; remove the protocol type configuration option - we're handling this implicit with the new mtn_remote_url configuration * Monotone.php: add the IDF user for ssh:// URIs; add support for remote_stdio and rework the command line stitching
Thomas Keller
2010-06-24 01:58:41 +02:00
5ce324f35f* clear the process environment and set LANG properly so we get english error codes and still keep utf8 compliant * rename _read to _readStdout and introduce a generic _readStderr which reads from the other pipe on failure
Thomas Keller
2010-06-24 00:10:41 +02:00
7303e9dd58return the correct file name for dropped files from monotone's diff output
Thomas Keller
2010-06-23 15:58:07 +02:00
e57fc18bcbadd a README file which contains the first steps and some hints for the monotone server configuration as well as some indefero API critique
Thomas Keller
2010-06-23 01:27:12 +02:00
9a8148079dprevent endless redirection if a requested branch does not exist, i.e. has no matching revisions
Thomas Keller
2010-06-23 00:22:10 +02:00
24762adeccimprove error handling and reporting of the stdio process
Thomas Keller
2010-06-21 23:24:47 +02:00
2ee665ac96Merge branch 'master' of git://projects.ceondo.com/indefero
Thomas Keller
2010-06-21 23:23:26 +02:00
2e1a91622eUpdated the Russian translations.
Denis
2010-06-17 20:03:52 +02:00
4687355351Updated the Czech translations.
mainiak
2010-06-15 11:21:06 +02:00
38dd610319Updated the German translations.
Loïc d'Anterroches
2010-06-15 11:17:26 +02:00
a4408de74dUpdated the Czech translations.
mainiak
2010-05-27 20:20:53 +02:00
7a952215aaAdded a series of hooks to trigger backup jobs when files are uploaded/deleted.
Loic d'Anterroches
2010-05-21 11:29:36 +02:00
982b330739Added the droping of the tags in the predelete to prevent some integrity issues.
Loic d'Anterroches
2010-05-21 11:28:48 +02:00
598451f470Fixed to get the scripts as executable by default.
Loic d'Anterroches
2010-05-20 12:23:34 +02:00
3e9229be5fUpdated to set the subversion hooks at creation of the repository.
Loic d'Anterroches
2010-05-20 10:42:51 +02:00
ad6148cae7Fixed issue 403, make the calcul of project's disk used space optionnal.
Loic d'Anterroches
2010-05-19 10:55:50 +02:00
2aebc0e099Fixed to correctly populate the queue when no notifications are defined.
Loic d'Anterroches
2010-05-18 15:10:43 +02:00
06022bf378Added the type of scm in the queue payload.
Loic d'Anterroches
2010-05-18 14:31:01 +02:00
430c9cb00eFixed issue 467, exception when deleting an orphan git repo.
Vladimir Solomatin
2010-05-17 19:40:26 +02:00
c534894995Added caching of the database, attachments and uploaded files to avoid calculating them each time.
Loic d'Anterroches
2010-05-17 12:17:02 +02:00
a91ce1600fAdded a global configuration registry.
Loic d'Anterroches
2010-05-17 10:29:00 +02:00
145f6d0d1dAdded a note to help with some Subversion errors when restarting Apache as root.
Loic d'Anterroches
2010-05-17 10:02:56 +02:00
04e7d7c99bMerge branch 'master' of git://projects.ceondo.com/indefero
Loic d'Anterroches
2010-05-12 09:19:57 +02:00