summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/norcs.pm
blob: 053652a5f8f86db533f45db98c315ec8527ebe8a (plain)
  1. #!/usr/bin/perl
  2. # Stubs for no revision control.
  3. package IkiWiki::Plugin::norcs;
  4. use warnings;
  5. use strict;
  6. use IkiWiki;
  7. sub import {
  8. hook(type => "getsetup", id => "norcs", call => \&getsetup);
  9. hook(type => "rcs", id => "rcs_update", call => \&rcs_update);
  10. hook(type => "rcs", id => "rcs_prepedit", call => \&rcs_prepedit);
  11. hook(type => "rcs", id => "rcs_commit", call => \&rcs_commit);
  12. hook(type => "rcs", id => "rcs_commit_staged", call => \&rcs_commit_staged);
  13. hook(type => "rcs", id => "rcs_add", call => \&rcs_add);
  14. hook(type => "rcs", id => "rcs_remove", call => \&rcs_remove);
  15. hook(type => "rcs", id => "rcs_rename", call => \&rcs_rename);
  16. hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges);
  17. hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
  18. hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
  19. hook(type => "rcs", id => "rcs_getmtime", call => \&rcs_getmtime);
  20. }
  21. sub getsetup () {
  22. return
  23. plugin => {
  24. safe => 0, # rcs plugin
  25. rebuild => 0,
  26. section => "rcs",
  27. },
  28. }
  29. sub rcs_update () {
  30. }
  31. sub rcs_prepedit ($) {
  32. return ""
  33. }
  34. sub rcs_commit ($$$;$$) {
  35. my ($file, $message, $rcstoken, $user, $ipaddr) = @_;
  36. return undef # success
  37. }
  38. sub rcs_commit_staged ($$$) {
  39. my ($message, $user, $ipaddr)=@_;
  40. return undef # success
  41. }
  42. sub rcs_add ($) {
  43. }
  44. sub rcs_remove ($) {
  45. }
  46. sub rcs_rename ($$) {
  47. }
  48. sub rcs_recentchanges ($) {
  49. }
  50. sub rcs_diff ($) {
  51. }
  52. sub rcs_getctime ($) {
  53. return 0;
  54. }
  55. sub rcs_getmtime ($) {
  56. return 0;
  57. }
  58. 1