/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (show annotations)
Sun Dec 10 00:01:33 2006 UTC (17 years, 4 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 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 is indexed,
13 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 is indexed,
25 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