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