aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/svn.pm
Commit message (Collapse)AuthorAge
* cloak user PII when making commits etc, and let cloaked PII be used in ↵Joey Hess2015-05-14
| | | | | | | | | | | | | | banned_users This was needed due to emailauth, but I've also wrapped all IP address exposure in cloak(), although the function doesn't yet cloak IP addresses. (One IP address I didn't cloak is the one that appears on the password reset email template. That is expected to be the user's own IP address, so ok to show it to them.) Thanks to smcv for the pointer to http://xmlns.com/foaf/spec/#term_mbox_sha1sum
* URI escape filename when generating the diffurl.Joey Hess2012-03-13
| | | | | ikiwiki source files can contain at least one character that needs to be escaped in an url: +
* svn: Support subversion 1.7, which does not have .svn in each subdirectory.Joey Hess2011-10-12
| | | | | | | | | | | | | | | | | | | | | | Involved dropping some checks for .svn which didn't add anything, since if svn is enabled and you point it at a non-svn checkout, you get both pieces. The tricky part is add and rename, in both cases the new file can be in some subdirectory that is not added to svn. For add, turns out svn has a --parents that will deal with this by adding the intermediate directories to svn as well. For rename though, --parents fails if the directories exist but are not yet in svn -- which is exactly the case, since ikiwiki makes them by calling prep_writefile. So instead, svn add the parent directory, recursively. tldr; svn made a reasonable change in dropping the .svn directories from everywhere, but the semantics of other svn commands, particularly their pickiness about whether parent directories are in svn or not, means that without the easy crutch of checking for those .svn directories, code has to tiptoe around svn to avoid pissing it off.
* Add a second parameter to the rcs_diff hook, and avoid bloating memory ↵Joey Hess2010-12-29
| | | | reading in enormous commits.
* rcs_getctime and rcs_getmtime take relative filenamesJoey Hess2010-06-23
| | | | | | | | | | There was some confusion about whether the filename was relative to srcdir or not. Some test cases, and the bzr plugin assumed it was relative to the srcdir. Most everything else assumed it was absolute. Changed it to relative, for consistency with the rest of the rcs_ functions.
* rcs_commit and rcs_commit_staged api changesJoey Hess2010-06-23
| | | | | | | | | | | Using named parameters for these is overdue. Passing the session in a parameter instead of passing username and IP separately will later allow storing other session info, like username or part of the email. Note that these functions are not part of the exported API, and the prototype change will catch (most) skew, so I am not changing API versions. Any third-party plugins that call them will need updated though.
* API: rcs_commit and rcs_commit_staged are passed a new parameterJoey Hess2010-06-23
| | | | | that may contain the username component of the email address of the user making the commit.
* squelch warningJoey Hess2010-04-16
|
* implement rcs_getmtime for svnJoey Hess2010-04-16
| | | | | | | | | This is a slow implementation; it runs svn log once per file still, rather than running svn log once on the whole srcdir. I did it this way because in my experience, svn log, run on a directory, does not always list every change to files inside that directory. I don't know why, and I use svn as little as possible these days.
* --gettime revampJoey Hess2010-04-16
| | | | | | | | * Rename --getctime to --gettime. (The old name still works for backwards compatability.) * --gettime now also looks up last modification time. * Add rcs_getmtime to plugin API; currently only implemented for git.
* Group related plugins into sections in the setup file, and drop unused rcs ↵Joey Hess2010-02-11
| | | | plugins from the setup file.
* svn: Fix rcs_rename to properly scope call to dirname.Joey Hess2009-07-08
|
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
|
* add plugin safe/rebuild info (part 3 of 3)Joey Hess2008-08-03
|
* show unsafe options (RO) by defaultJoey Hess2008-08-02
| | | | | Small data leak, but only to admins, and I think it's worth it to see the stuff that cannot be configured.
* rcs plugin loading reorgJoey Hess2008-08-01
| | | | | | Move rcs plugin load to loadplugins; move duplicate rcs detection logic out of individual plugins and into loadplugins. Avoids checkconfig failing when run twice.
* add guard against enabling multiple rcs pluginsJoey Hess2008-07-30
|
* avoid clobbering example diffurlJoey Hess2008-07-27
|
* finish with rcs plugin conversionJoey Hess2008-07-26
|
* Version control backends promoted to first-class pluginsJoey Hess2008-07-26