rscm 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +6 -0
  2. data/README +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/rscm/revision_poller.rb +4 -2
  5. metadata +2 -2
data/CHANGES CHANGED
@@ -1,5 +1,11 @@
1
1
  = RSCM Changelog
2
2
 
3
+ == Version 0.3.10
4
+
5
+ Bugfix release
6
+
7
+ * Removed DamageControl leftovers in revision_poller
8
+
3
9
  == Version 0.3.9
4
10
 
5
11
  This release improves Subversion and ClearCase support
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = RSCM - Ruby Source Control Management (0.3.9)
1
+ = RSCM - Ruby Source Control Management (0.3.10)
2
2
 
3
3
  RSCM is to SCM what DBI/JDBC/ODBC are to databases - an SCM-independent API for accessing different SCMs. The features are roughly:
4
4
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ require 'meta_project'
10
10
 
11
11
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
12
12
  PKG_NAME = 'rscm'
13
- PKG_VERSION = '0.3.9' + PKG_BUILD
13
+ PKG_VERSION = '0.3.10' + PKG_BUILD
14
14
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
15
15
 
16
16
  desc "Default Task"
@@ -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.9
7
- date: 2005-10-12 00:00:00 -04:00
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