rscm 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/rscm/revision_poller.rb +4 -2
- metadata +2 -2
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
data/lib/rscm/revision_poller.rb
CHANGED
@@ -4,6 +4,9 @@ module RSCM
|
|
4
4
|
|
5
5
|
TWO_WEEKS_AGO = 2*7*24*60*60
|
6
6
|
THIRTY_TWO_WEEKS_AGO = TWO_WEEKS_AGO * 16
|
7
|
+
# Default time to wait for scm to be quiet (applies to non-transactional scms only)
|
8
|
+
DEFAULT_QUIET_PERIOD = 15
|
9
|
+
|
7
10
|
|
8
11
|
# Polls new revisions for since +last_revision+,
|
9
12
|
# or if +last_revision+ is nil, polls since 'now' - +seconds_before_now+.
|
@@ -13,7 +16,7 @@ module RSCM
|
|
13
16
|
# This happens until revisions are found, ot until the +seconds_before_now+
|
14
17
|
# Exceeds 32 weeks, which means it's probably not worth looking further in
|
15
18
|
# the past, the scm is either completely idle or not yet active.
|
16
|
-
def poll_new_revisions(latest_revision=nil, seconds_before_now=TWO_WEEKS_AGO, max_time_before_now=THIRTY_TWO_WEEKS_AGO)
|
19
|
+
def poll_new_revisions(latest_revision=nil, quiet_period=DEFAULT_QUIET_PERIOD, seconds_before_now=TWO_WEEKS_AGO, max_time_before_now=THIRTY_TWO_WEEKS_AGO)
|
17
20
|
max_past = Time.new.utc - max_time_before_now
|
18
21
|
|
19
22
|
if(!central_exists?)
|
@@ -57,7 +60,6 @@ module RSCM
|
|
57
60
|
# the revisions for really slow commits, but they will be part of the next
|
58
61
|
# revision (on next poll).
|
59
62
|
commit_in_progress = true
|
60
|
-
quiet_period = project.quiet_period || DEFAULT_QUIET_PERIOD
|
61
63
|
while(commit_in_progress)
|
62
64
|
logger.info "Sleeping for #{quiet_period} seconds because #{visual_name} is not transactional." if logger
|
63
65
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rscm
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2005-10-
|
6
|
+
version: 0.3.10
|
7
|
+
date: 2005-10-13 00:00:00 -04:00
|
8
8
|
summary: "RSCM - Ruby Source Control Management"
|
9
9
|
require_paths:
|
10
10
|
- lib
|