]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/po:_remove_po_files_when_disabling_plugin.mdwn
A rough implementation is now available, needs testing.
[ikiwiki.git] / doc / todo / po:_remove_po_files_when_disabling_plugin.mdwn
index 26b1964ba30daa03830e6e5bcc3c1ab453ef6d88..6c11fa17baafc5db4ebab4b916f4151096b8bbdc 100644 (file)
@@ -2,3 +2,18 @@ ikiwiki now has a `disable` hook. Should the po plugin remove the po
 files from the source repository when it has been disabled?
 
 > pot files, possibly, but the po files contain work, so no. --[[Joey]] 
+
+>> I tried to implement this in my `po-disable` branch, but AFAIK, the
+>> current rcs plugins interface provides no way to tell whether a
+>> given file (e.g. a POT file in my case) is under version control;
+>> in most cases, it is not, thanks to .gitignore or similar, but we
+>> can't be sure. So I just can't decide it is needed to call
+>> `rcs_remove` rather than a good old `unlink`. --[[intrigeri]]
+
+>>> I guess you could call `rcs_remove` followed by `unlink`. --[[Joey]] 
+
+>>>> Implemented in my `po-disable` branch, added a basic test case
+>>>> that passes, not tested in a real ikiwiki with a VCS yet.
+>>>> Not sure I'll have time to do better any time soon, but for
+>>>> anyone interested to lead this to completion, it should be a good
+>>>> starting point. --[[intrigeri]]