intrigeri
e895157397
Pass src, srcfile, dest and destfile to the canrename hook.
...
This is not needed by the use I'm doing of it, but seems more consistent to me.
Future users of this hook may need this data to make their mind.
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01 18:04:37 +01:00
intrigeri
a8105f6859
rename: pass the CGI and session to the rename hook
...
The po plugin remame + canrename hook combination will need this.
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01 17:47:20 +01:00
intrigeri
3316f9cc73
rename: implemented new canrename hook
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01 16:52:34 +01:00
intrigeri
5c2f6cb893
Merge commit 'upstream/master' into prv/po
2009-01-01 13:34:00 +01:00
intrigeri
5738f30a29
the rename hook can now change the list of pages to rename
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30 22:55:04 +01:00
intrigeri
c01485ae1a
renamed the renamepage hook to renamelink, added rename hook
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30 21:36:40 +01:00
Joey Hess
678d467a40
finalise version 3.00 of the plugin api
2008-12-23 16:34:19 -05:00
Joey Hess
bb93fccf06
Coding style change: Remove explcit vim folding markers.
2008-12-17 15:22:16 -05:00
Joey Hess
b2366f764b
rename: Fix double-escaping of page name in edit box.
...
titlepage normally escapes, but so does formbuilder.
2008-12-17 13:56:10 -05:00
Joey Hess
3b47dae9ca
remove, rename: Allow acting on attachments as a page is being created.
2008-10-02 12:53:53 -04:00
Joey Hess
826af4600a
fix subpage rename bug with indexpages
...
If indexpages is enabled, then foo/index.mdwn will look like a subpage
of foo, so an additional check is needed to avoid trying to rename it
twice.
2008-10-01 14:43:28 -04:00
Joey Hess
2ba168ac83
use newpagefile
2008-09-29 18:52:42 -04:00
Joey Hess
a7fd6debc5
support indexpages when renaming pages
...
Note that the page filename code used here and in editpage are identical..
2008-09-29 18:29:53 -04:00
Joey Hess
9ec9d6901d
Export pagetitle, titlepage, linkpage.
2008-09-27 14:27:42 -04:00
Joey Hess
316ef6571b
pagetype is exported
2008-09-27 13:34:46 -04:00
Joey Hess
e00df8575f
rename: Hide type field from rename form when renaming attachments.
2008-09-23 19:31:34 -04:00
Joey Hess
40dc92a67b
multiple rename support is working
...
most edge cases seem handled too
2008-09-23 19:21:05 -04:00
Joey Hess
544da9b0da
Merge branch 'master' into tova
2008-09-23 17:42:38 -04:00
Joey Hess
8e0180d8ca
rename, remove: Don't rely on a form parameter to tell whether the page should be treated as an attachment.
2008-09-23 17:41:05 -04:00
Joey Hess
cf4db49567
factor out fixlinks
2008-09-23 17:26:46 -04:00
Joey Hess
9b57602394
factor out do_rename
2008-09-23 17:04:01 -04:00
Joey Hess
9cbc46f49a
add checkbox to rename subpages too
2008-09-23 16:56:57 -04:00
Joey Hess
8494104b39
layout
2008-09-23 14:57:13 -04:00
Joey Hess
3de7d39ec6
use srcfile/destfile
...
avoids a commit message of "renamed foo to foo"
2008-08-07 16:20:35 -04:00
Joey Hess
11550f9593
avoid link fixup if page name stayed the same
2008-08-07 16:17:50 -04:00
Joey Hess
46b9a83b61
page file type rename patch from willu
2008-08-07 16:09:41 -04:00
Joey Hess
39195de96e
add plugin safe/rebuild info (part 2 of 3)
...
(brain.. melting..)
2008-08-03 17:20:21 -04:00
Joey Hess
762bf0b887
foldage
2008-07-23 19:25:46 -04:00
Joey Hess
985a34b09e
fixup editpage links on rename
2008-07-23 19:20:11 -04:00
Joey Hess
7befc6deb3
link fixup on rename working
2008-07-23 19:12:05 -04:00
Joey Hess
29f32d0ba3
add a list of broken links after the rename
2008-07-22 20:30:54 -04:00
Joey Hess
1c9a3cb82b
add a rename summary
2008-07-22 20:17:03 -04:00
Joey Hess
2b9615194e
fix gettext
2008-07-22 19:44:31 -04:00
Joey Hess
421559b230
edit page fixup in postrename
2008-07-22 18:17:11 -04:00
Joey Hess
89b3bb7e38
check for absolute paths
2008-07-22 17:38:31 -04:00
Joey Hess
114e20e948
typo
2008-07-22 17:03:28 -04:00
Joey Hess
cbddb5a4b8
add rcs_commit_staged and rcs_rename
...
Implemented for git and svn so far.
Note that rcs_commit_staged does assume that the rcs has the ability to
"stage" multiple changes for a later commit. Support for this varies, but
all we really care about is staging removals and renames, which, AFAIK, all
modern rcs's support.
2008-07-22 16:14:33 -04:00
Joey Hess
cf9620074a
qualifiy
2008-07-22 15:07:07 -04:00
Joey Hess
cbf1c8b810
rename checks improvements
2008-07-22 14:01:23 -04:00
Joey Hess
a3e16cd29f
really add
2008-07-21 22:44:37 -04:00