/[SVNBrowser]/trunk/lib/SVNBrowser/Model/Revision.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/lib/SVNBrowser/Model/Revision.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations)
Sun Dec 10 00:01:33 2006 UTC (17 years, 5 months ago) by dpavlin
File size: 595 byte(s)
a bunch of improvements:
- moved regex to extract branch from path to config.yml as branch_regex
- added filtering by branch (two new models Branch and RevisionBranch for that)
- added indexes where needed to speed-up filtering
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 dpavlin 26 is indexed,
13 dpavlin 1 mandatory;
14    
15     # column actions =>
16     # refers_to SVNBrowser::Model::Action by 'id';
17    
18     column author =>
19     type is 'text',
20     mandatory;
21    
22     column commit_date =>
23     type is 'timestamp',
24 dpavlin 26 is indexed,
25 dpavlin 1 filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
26     mandatory;
27    
28     column message =>
29     type is 'text',
30     render as 'textarea';
31    
32     };
33    
34     # Your model-specific methods go here.
35    
36     1;
37    

  ViewVC Help
Powered by ViewVC 1.1.26