summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/norcs.pm
blob: e6a05a3c5d855d89691414001996070c5f8f9c2c (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. }
  20. sub getsetup () {
  21. return
  22. plugin => {
  23. safe => 0, # rcs plugin
  24. rebuild => 0,
  25. section => "rcs",
  26. },
  27. }
  28. sub rcs_update () {
  29. }
  30. sub rcs_prepedit ($) {
  31. return ""
  32. }
  33. sub rcs_commit ($$$;$$) {
  34. my ($file, $message, $rcstoken, $user, $ipaddr) = @_;
  35. return undef # success
  36. }
  37. sub rcs_commit_staged ($$$) {
  38. my ($message, $user, $ipaddr)=@_;
  39. return undef # success
  40. }
  41. sub rcs_add ($) {
  42. }
  43. sub rcs_remove ($) {
  44. }
  45. sub rcs_rename ($$) {
  46. }
  47. sub rcs_recentchanges ($) {
  48. }
  49. sub rcs_diff ($) {
  50. }
  51. sub rcs_getctime ($) {
  52. error gettext("getctime not implemented");
  53. }
  54. 1