Parent Directory | Revision Log
use SVN::Log to parse subversion logs and fill-in model
1 | dpavlin | 1 | use strict; |
2 | use warnings; | ||
3 | |||
4 | package SVNBrowser::Model::Revision; | ||
5 | use Jifty::DBI::Schema; | ||
6 | use SVNBrowser::Model::Action; | ||
7 | |||
8 | use SVNBrowser::Record schema { | ||
9 | |||
10 | column revision => | ||
11 | type is 'int', | ||
12 | mandatory; | ||
13 | |||
14 | # column actions => | ||
15 | # refers_to SVNBrowser::Model::Action by 'id'; | ||
16 | |||
17 | column author => | ||
18 | type is 'text', | ||
19 | mandatory; | ||
20 | |||
21 | column commit_date => | ||
22 | type is 'timestamp', | ||
23 | filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime), | ||
24 | mandatory; | ||
25 | |||
26 | column message => | ||
27 | type is 'text', | ||
28 | render as 'textarea'; | ||
29 | |||
30 | }; | ||
31 | |||
32 | # Your model-specific methods go here. | ||
33 | |||
34 | 1; | ||
35 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |