summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/norcs.pm
blob: 72c66569c3651c98fd94ba922cafb75a9f30595b (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 => "rcs", id => "rcs_update", call => \&rcs_update);
  9. hook(type => "rcs", id => "rcs_prepedit", call => \&rcs_prepedit);
  10. hook(type => "rcs", id => "rcs_commit", call => \&rcs_commit);
  11. hook(type => "rcs", id => "rcs_commit_staged", call => \&rcs_commit_staged);
  12. hook(type => "rcs", id => "rcs_add", call => \&rcs_add);
  13. hook(type => "rcs", id => "rcs_remove", call => \&rcs_remove);
  14. hook(type => "rcs", id => "rcs_rename", call => \&rcs_rename);
  15. hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges);
  16. hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
  17. hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
  18. } #}}}
  19. sub rcs_update () { #{{{
  20. } #}}}
  21. sub rcs_prepedit ($) { #{{{
  22. return ""
  23. } #}}}
  24. sub rcs_commit ($$$;$$) { #{{{
  25. my ($file, $message, $rcstoken, $user, $ipaddr) = @_;
  26. return undef # success
  27. } #}}}
  28. sub rcs_commit_staged ($$$) { #{{{
  29. my ($message, $user, $ipaddr)=@_;
  30. return undef # success
  31. } #}}}
  32. sub rcs_add ($) { #{{{
  33. } #}}}
  34. sub rcs_remove ($) { #{{{
  35. } #}}}
  36. sub rcs_rename ($$) { #{{{
  37. } #}}}
  38. sub rcs_recentchanges ($) { #{{{
  39. } #}}}
  40. sub rcs_diff ($) { #{{{
  41. } #}}}
  42. sub rcs_getctime ($) { #{{{
  43. error gettext("getctime not implemented");
  44. } #}}}
  45. 1