Changes

Jump to navigation Jump to search
160 bytes added ,  15:45, 10 November 2010
Line 62: Line 62:  
  Mailer.deliver_forgotten_password(user, password_key)
 
  Mailer.deliver_forgotten_password(user, password_key)
 
   
 
   
  # add new committer
+
  # add new repository committer
 
  committer = User.find_by_login("user")
 
  committer = User.find_by_login("user")
  project = Project.find_by_title("project")
+
  repo = Repository::find_by_path("sugar/mainline")
repo = project.repositories.select {|i| i.title == 'mainline'}.pop
+
  repo.committerships.create_with_permissions!({:committer => committer}, (Committership::CAN_COMMIT))
  repo.committerships.create_with_permissions!({:committer => committer}, [Committership::CAN_COMMIT])
+
 
 +
# delete repository committer
 +
committer = User.find_by_login("user")
 +
repo = Repository::find_by_path("sugar/mainline")
 +
repo.committerships = repo.committerships.select {|i| !i.members.include? committer }
    
== Upgrade notes ==
 
== Upgrade notes ==
    
Upgrade will be triggered on every puppet session (if there is such need), vcs repository will be rebased to the HEAD commit with all related changes like database migration.
 
Upgrade will be triggered on every puppet session (if there is such need), vcs repository will be rebased to the HEAD commit with all related changes like database migration.

Navigation menu