Show explicit error message when the scm command failed (eg. when svn binary is not available).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-01-23 17:25:11 +00:00
parent 97e7432ce6
commit 91dc13f4b2
26 changed files with 90 additions and 27 deletions

View File

@ -137,6 +137,11 @@ class ApplicationController < ActionController::Base
return false return false
end end
def render_error(msg)
flash.now[:error] = msg
render :nothing => true, :layout => !request.xhr?, :status => 500
end
def render_feed(items, options={}) def render_feed(items, options={})
@items = items || [] @items = items || []
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime } @items.sort! {|x,y| y.event_datetime <=> x.event_datetime }

View File

@ -56,6 +56,8 @@ class RepositoriesController < ApplicationController
# latest changesets # latest changesets
@changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC") @changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
show_error and return unless @entries || @changesets.any? show_error and return unless @entries || @changesets.any?
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def browse def browse
@ -65,12 +67,16 @@ class RepositoriesController < ApplicationController
else else
show_error unless @entries show_error unless @entries
end end
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def changes def changes
@entry = @repository.scm.entry(@path, @rev) @entry = @repository.scm.entry(@path, @rev)
show_error and return unless @entry show_error and return unless @entry
@changesets = @repository.changesets_for_path(@path) @changesets = @repository.changesets_for_path(@path)
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def revisions def revisions
@ -97,11 +103,15 @@ class RepositoriesController < ApplicationController
# Prevent empty lines when displaying a file with Windows style eol # Prevent empty lines when displaying a file with Windows style eol
@content.gsub!("\r\n", "\n") @content.gsub!("\r\n", "\n")
end end
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def annotate def annotate
@annotate = @repository.scm.annotate(@path, @rev) @annotate = @repository.scm.annotate(@path, @rev)
show_error and return if @annotate.nil? || @annotate.empty? show_error and return if @annotate.nil? || @annotate.empty?
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def revision def revision
@ -119,6 +129,8 @@ class RepositoriesController < ApplicationController
end end
rescue ChangesetNotFound rescue ChangesetNotFound
show_error show_error
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def diff def diff
@ -137,6 +149,8 @@ class RepositoriesController < ApplicationController
@diff = @repository.diff(@path, @rev, @rev_to, @diff_type) @diff = @repository.diff(@path, @rev, @rev_to, @diff_type)
show_error and return unless @diff show_error and return unless @diff
end end
rescue Redmine::Scm::Adapters::CommandFailed => e
show_error_command_failed(e.message)
end end
def stats def stats
@ -176,9 +190,12 @@ private
render_404 render_404
end end
def show_error def show_error_not_found
flash.now[:error] = l(:notice_scm_error) render_error l(:error_scm_not_found)
render :nothing => true, :layout => true end
def show_error_command_failed(msg)
render_error l(:error_scm_command_failed, msg)
end end
def graph_commits_per_month(repository) def graph_commits_per_month(repository)

View File

@ -68,12 +68,14 @@ notice_successful_delete: Успешно изтриване.
notice_successful_connection: Успешно свързване. notice_successful_connection: Успешно свързване.
notice_file_not_found: Несъществуваща или преместена страница. notice_file_not_found: Несъществуваща или преместена страница.
notice_locking_conflict: Друг потребител променя тези данни в момента. notice_locking_conflict: Друг потребител променя тези данни в момента.
notice_scm_error: Несъществуващ обект в склада.
notice_not_authorized: Нямате право на достъп до тази страница. notice_not_authorized: Нямате право на достъп до тази страница.
notice_email_sent: Изпратен e-mail на %s notice_email_sent: Изпратен e-mail на %s
notice_email_error: Грешка при изпращане на e-mail (%s) notice_email_error: Грешка при изпращане на e-mail (%s)
notice_feeds_access_key_reseted: Вашия ключ за RSS достъп беше променен. notice_feeds_access_key_reseted: Вашия ключ за RSS достъп беше променен.
error_scm_not_found: Несъществуващ обект в склада.
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Вашата парола mail_subject_lost_password: Вашата парола
mail_body_lost_password: 'За да смените паролата си, използвайте следния линк:' mail_body_lost_password: 'За да смените паролата си, използвайте следния линк:'
mail_subject_register: Активация на акаунт mail_subject_register: Активация на акаунт

View File

@ -68,12 +68,14 @@ notice_successful_delete: Úspěšné smazání.
notice_successful_connection: Úspěšné připojení. notice_successful_connection: Úspěšné připojení.
notice_file_not_found: Stránka na kterou se snažíte zobrazit neexistuje nebo byla smazána. notice_file_not_found: Stránka na kterou se snažíte zobrazit neexistuje nebo byla smazána.
notice_locking_conflict: Údaje byly změněny jiným uživatelem. notice_locking_conflict: Údaje byly změněny jiným uživatelem.
notice_scm_error: Entry and/or revision doesn't exist in the repository.
notice_not_authorized: Nemáte dostatečná práva pro zobrazení této stránky. notice_not_authorized: Nemáte dostatečná práva pro zobrazení této stránky.
notice_email_sent: Na adresu %s byl odeslán email notice_email_sent: Na adresu %s byl odeslán email
notice_email_error: Při odesílání emailu nastala chyba (%s) notice_email_error: Při odesílání emailu nastala chyba (%s)
notice_feeds_access_key_reseted: Váš klíč pro přístup k RSS byl resetován. notice_feeds_access_key_reseted: Váš klíč pro přístup k RSS byl resetován.
error_scm_not_found: "Entry and/or revision doesn't exist in the repository."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Vaše heslo mail_subject_lost_password: Vaše heslo
mail_body_lost_password: 'To change your Redmine password, click on the following link:' mail_body_lost_password: 'To change your Redmine password, click on the following link:'
mail_subject_register: aktivace účtu mail_subject_register: aktivace účtu

View File

@ -68,12 +68,14 @@ notice_successful_delete: Erfolgreich gelöscht.
notice_successful_connection: Verbindung erfolgreich. notice_successful_connection: Verbindung erfolgreich.
notice_file_not_found: Anhang besteht nicht oder ist gelöscht worden. notice_file_not_found: Anhang besteht nicht oder ist gelöscht worden.
notice_locking_conflict: Datum wurde von einem anderen Benutzer geändert. notice_locking_conflict: Datum wurde von einem anderen Benutzer geändert.
notice_scm_error: Eintrag und/oder Revision besteht nicht im Projektarchiv.
notice_not_authorized: Sie sind nicht berechtigt, auf diese Seite zuzugreifen. notice_not_authorized: Sie sind nicht berechtigt, auf diese Seite zuzugreifen.
notice_email_sent: Eine E-Mail wurde an %s gesendet. notice_email_sent: Eine E-Mail wurde an %s gesendet.
notice_email_error: Beim Senden einer E-Mail ist ein Fehler aufgetreten (%s). notice_email_error: Beim Senden einer E-Mail ist ein Fehler aufgetreten (%s).
notice_feeds_access_key_reseted: Ihr RSS-Zugriffsschlüssel wurde zurückgesetzt. notice_feeds_access_key_reseted: Ihr RSS-Zugriffsschlüssel wurde zurückgesetzt.
error_scm_not_found: "Eintrag und/oder Revision besteht nicht im Projektarchiv."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Ihr Redmine-Kennwort mail_subject_lost_password: Ihr Redmine-Kennwort
mail_body_lost_password: 'Benutzen Sie den folgenden Link, um Ihr Kennwort zu ändern:' mail_body_lost_password: 'Benutzen Sie den folgenden Link, um Ihr Kennwort zu ändern:'
mail_subject_register: Redmine Kontoaktivierung mail_subject_register: Redmine Kontoaktivierung

View File

@ -68,7 +68,6 @@ notice_successful_delete: Successful deletion.
notice_successful_connection: Successful connection. notice_successful_connection: Successful connection.
notice_file_not_found: The page you were trying to access doesn't exist or has been removed. notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
notice_locking_conflict: Data have been updated by another user. notice_locking_conflict: Data have been updated by another user.
notice_scm_error: Entry and/or revision doesn't exist in the repository.
notice_not_authorized: You are not authorized to access this page. notice_not_authorized: You are not authorized to access this page.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
@ -79,6 +78,8 @@ notice_account_pending: "Your account was created and is now pending administrat
notice_default_data_loaded: Default configuration successfully loaded. notice_default_data_loaded: Default configuration successfully loaded.
error_can_t_load_default_data: "Default configuration could not be loaded: %s" error_can_t_load_default_data: "Default configuration could not be loaded: %s"
error_scm_not_found: "Entry and/or revision doesn't exist in the repository."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Your Redmine password mail_subject_lost_password: Your Redmine password
mail_body_lost_password: 'To change your Redmine password, click on the following link:' mail_body_lost_password: 'To change your Redmine password, click on the following link:'

View File

@ -68,9 +68,11 @@ notice_successful_delete: Borrado correcto.
notice_successful_connection: Conexión correcta. notice_successful_connection: Conexión correcta.
notice_file_not_found: La página a la que intentas acceder no existe. notice_file_not_found: La página a la que intentas acceder no existe.
notice_locking_conflict: Los datos han sido modificados por otro usuario. notice_locking_conflict: Los datos han sido modificados por otro usuario.
notice_scm_error: La entrada y/o la revisión no existe en el repositorio.
notice_not_authorized: No tiene autorización para acceder a esta página. notice_not_authorized: No tiene autorización para acceder a esta página.
error_scm_not_found: "La entrada y/o la revisión no existe en el repositorio."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Tu contraseña del CIYAT - Gestor de Solicitudes mail_subject_lost_password: Tu contraseña del CIYAT - Gestor de Solicitudes
mail_body_lost_password: 'Para cambiar su contraseña de Redmine, haga click en el siguiente enlace:' mail_body_lost_password: 'Para cambiar su contraseña de Redmine, haga click en el siguiente enlace:'
mail_subject_register: Activación de la cuenta del CIYAT - Gestor de Solicitudes mail_subject_register: Activación de la cuenta del CIYAT - Gestor de Solicitudes

View File

@ -68,7 +68,6 @@ notice_successful_delete: Poisto onnistui.
notice_successful_connection: Yhteyden muodostus onnistui. notice_successful_connection: Yhteyden muodostus onnistui.
notice_file_not_found: Hakemaasi sivua ei löytynyt tai se on poistettu. notice_file_not_found: Hakemaasi sivua ei löytynyt tai se on poistettu.
notice_locking_conflict: Toinen käyttäjä on päivittänyt tiedot. notice_locking_conflict: Toinen käyttäjä on päivittänyt tiedot.
notice_scm_error: Syötettä ja/tai versiota ei löydy säiliöstä.
notice_not_authorized: Sinulla ei ole oikeutta näyttää tätä sivua. notice_not_authorized: Sinulla ei ole oikeutta näyttää tätä sivua.
notice_email_sent: Sähköposti on lähetty osoitteeseen %s notice_email_sent: Sähköposti on lähetty osoitteeseen %s
notice_email_error: Sähköpostilähetyksessä tapahtui virhe (%s) notice_email_error: Sähköpostilähetyksessä tapahtui virhe (%s)
@ -79,6 +78,8 @@ notice_account_pending: "Tilisi on luotu ja odottaa ylläpitäjän hyväksyntä
notice_default_data_loaded: Vakio asetusten palautus onnistui. notice_default_data_loaded: Vakio asetusten palautus onnistui.
error_can_t_load_default_data: "Vakio asetuksia ei voitu ladata: %s" error_can_t_load_default_data: "Vakio asetuksia ei voitu ladata: %s"
error_scm_not_found: "Syötettä ja/tai versiota ei löydy säiliöstä."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Sinun Redmine salasanasi mail_subject_lost_password: Sinun Redmine salasanasi
mail_body_lost_password: 'Vaihtaaksesi Redmine salasanasi, paina seuraavaa linkkiä:' mail_body_lost_password: 'Vaihtaaksesi Redmine salasanasi, paina seuraavaa linkkiä:'

View File

@ -79,6 +79,8 @@ notice_account_pending: "Votre compte a été créé et attend l'approbation de
notice_default_data_loaded: Paramétrage par défaut chargé avec succès. notice_default_data_loaded: Paramétrage par défaut chargé avec succès.
error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage: %s" error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage: %s"
error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
error_scm_command_failed: "Une erreur s'est produite lors de l'accès au dépôt: %s"
mail_subject_lost_password: Votre mot de passe redMine mail_subject_lost_password: Votre mot de passe redMine
mail_body_lost_password: 'Pour changer votre mot de passe Redmine, cliquez sur le lien suivant:' mail_body_lost_password: 'Pour changer votre mot de passe Redmine, cliquez sur le lien suivant:'

View File

@ -68,7 +68,6 @@ notice_successful_delete: מחיקה מוצלחת.
notice_successful_connection: חיבור מוצלח. notice_successful_connection: חיבור מוצלח.
notice_file_not_found: הדף שאת\ה מנסה לגשת אליו אינו קיים או שהוסר. notice_file_not_found: הדף שאת\ה מנסה לגשת אליו אינו קיים או שהוסר.
notice_locking_conflict: המידע עודכן על ידי משתמש אחר. notice_locking_conflict: המידע עודכן על ידי משתמש אחר.
notice_scm_error: כניסה ו\או גירסא אינם קיימים במאגר.
notice_not_authorized: אינך מורשה לראות דף זה. notice_not_authorized: אינך מורשה לראות דף זה.
notice_email_sent: דוא"ל נשלח לכתובת %s notice_email_sent: דוא"ל נשלח לכתובת %s
notice_email_error: ארעה שגיאה בעט שליחת הדוא"ל (%s) notice_email_error: ארעה שגיאה בעט שליחת הדוא"ל (%s)
@ -76,6 +75,9 @@ notice_feeds_access_key_reseted: מפתח ה-RSS שלך אופס.
notice_failed_to_save_issues: "נכשרת בשמירת %d נושא\ים ב %d נבחרו: %s." notice_failed_to_save_issues: "נכשרת בשמירת %d נושא\ים ב %d נבחרו: %s."
notice_no_issue_selected: "לא נבחר אף נושא! בחר בבקשה את הנושאים שברצונך לערוך." notice_no_issue_selected: "לא נבחר אף נושא! בחר בבקשה את הנושאים שברצונך לערוך."
error_scm_not_found: כניסה ו\או גירסא אינם קיימים במאגר.
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: סיסמת ה-Redmine שלך mail_subject_lost_password: סיסמת ה-Redmine שלך
mail_body_lost_password: 'לשינו סיסמת ה-Redmine שלך,לחץ על הקישור הבא:' mail_body_lost_password: 'לשינו סיסמת ה-Redmine שלך,לחץ על הקישור הבא:'
mail_subject_register: הפעלת חשבון Redmine mail_subject_register: הפעלת חשבון Redmine

View File

@ -68,12 +68,14 @@ notice_successful_delete: Eliminazione effettuata.
notice_successful_connection: Connessione effettuata. notice_successful_connection: Connessione effettuata.
notice_file_not_found: La pagina desiderata non esiste o è stata rimossa. notice_file_not_found: La pagina desiderata non esiste o è stata rimossa.
notice_locking_conflict: Le informazioni sono state modificate da un altro utente. notice_locking_conflict: Le informazioni sono state modificate da un altro utente.
notice_scm_error: La risorsa e/o la versione non esistono nel repository.
notice_not_authorized: You are not authorized to access this page. notice_not_authorized: You are not authorized to access this page.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: "La risorsa e/o la versione non esistono nel repository."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Password redMine mail_subject_lost_password: Password redMine
mail_body_lost_password: 'Per cambiare la password, usate il seguente collegamento:' mail_body_lost_password: 'Per cambiare la password, usate il seguente collegamento:'
mail_subject_register: Attivazione utenza redMine mail_subject_register: Attivazione utenza redMine

View File

@ -69,12 +69,14 @@ notice_successful_delete: 削除しました。
notice_successful_connection: 接続しました。 notice_successful_connection: 接続しました。
notice_file_not_found: アクセスしようとしたページは存在しないか削除されています。 notice_file_not_found: アクセスしようとしたページは存在しないか削除されています。
notice_locking_conflict: 別のユーザがデータを更新しています。 notice_locking_conflict: 別のユーザがデータを更新しています。
notice_scm_error: リポジトリに、エントリ/リビジョンが存在しません。
notice_not_authorized: このページにアクセスするには認証が必要です。 notice_not_authorized: このページにアクセスするには認証が必要です。
notice_email_sent: %s宛にメールを送信しました。 notice_email_sent: %s宛にメールを送信しました。
notice_email_error: メール送信中にエラーが発生しました(%s) notice_email_error: メール送信中にエラーが発生しました(%s)
notice_feeds_access_key_reseted: RSSアクセスキーを初期化しました。 notice_feeds_access_key_reseted: RSSアクセスキーを初期化しました。
error_scm_not_found: リポジトリに、エントリ/リビジョンが存在しません。
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Redmineパスワード mail_subject_lost_password: Redmineパスワード
mail_body_lost_password: 'パスワードを変更するには、以下のリンクをたどってください:' mail_body_lost_password: 'パスワードを変更するには、以下のリンクをたどってください:'
mail_subject_register: Redmineアカウントが有効になりました mail_subject_register: Redmineアカウントが有効になりました

View File

@ -68,7 +68,6 @@ notice_successful_delete: 삭제 성공.
notice_successful_connection: 연결 성공. notice_successful_connection: 연결 성공.
notice_file_not_found: 요청하신 페이지는 삭제되었거나 옮겨졌습니다. notice_file_not_found: 요청하신 페이지는 삭제되었거나 옮겨졌습니다.
notice_locking_conflict: 다른 사용자에 의해서 데이터가 변경되었습니다. notice_locking_conflict: 다른 사용자에 의해서 데이터가 변경되었습니다.
notice_scm_error: 소스 저장소에 해당 내용이 존재하지 않습니다.
notice_not_authorized: 이 페이지에 접근할 권한이 없습니다. notice_not_authorized: 이 페이지에 접근할 권한이 없습니다.
notice_email_sent: %s 님에게 Email이 발송되었습니다. notice_email_sent: %s 님에게 Email이 발송되었습니다.
notice_email_error: 메일을 전송하는 과정에 오류가 발생했습니다. (%s) notice_email_error: 메일을 전송하는 과정에 오류가 발생했습니다. (%s)
@ -76,6 +75,9 @@ notice_feeds_access_key_reseted: RSS에 접근가능한 열쇠(key)가 생성되
notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s." notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
notice_no_issue_selected: "티켓이 선택되지 않았습니다. 수정하기 원하는 티켓을 선택하세요" notice_no_issue_selected: "티켓이 선택되지 않았습니다. 수정하기 원하는 티켓을 선택하세요"
error_scm_not_found: 소스 저장소에 해당 내용이 존재하지 않습니다.
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: 당신의 비밀번호 mail_subject_lost_password: 당신의 비밀번호
mail_body_lost_password: '비밀번호를 변경하기 위해서 링크를 이용하세요' mail_body_lost_password: '비밀번호를 변경하기 위해서 링크를 이용하세요'
mail_subject_register: 당신의 계정 활성화 mail_subject_register: 당신의 계정 활성화

View File

@ -68,7 +68,6 @@ notice_successful_delete: Sėkmingas panaikinimas.
notice_successful_connection: Sėkmingas susijungimas. notice_successful_connection: Sėkmingas susijungimas.
notice_file_not_found: Puslapis, į kurį ketinate įeiti, neegzistuoja arba pašalintas. notice_file_not_found: Puslapis, į kurį ketinate įeiti, neegzistuoja arba pašalintas.
notice_locking_conflict: Duomenys atnaujinti kito vartotojo. notice_locking_conflict: Duomenys atnaujinti kito vartotojo.
notice_scm_error: Duomenys ir/ar pakeitimai saugykloje(repozitorojoje) neegzistuoja.
notice_not_authorized: Jūs neturite teisių gauti prieigą prie šio puslapio. notice_not_authorized: Jūs neturite teisių gauti prieigą prie šio puslapio.
notice_email_sent: Laiškas išsiųstas %s notice_email_sent: Laiškas išsiųstas %s
notice_email_error: Laiško siųntimo metu įvyko klaida (%s) notice_email_error: Laiško siųntimo metu įvyko klaida (%s)
@ -77,6 +76,9 @@ notice_failed_to_save_issues: "Nepavyko išsaugoti %d problemos(ų) iš %d pasir
notice_no_issue_selected: "Nepasirinkta nė viena problema! Prašom pažymėti problemą, kurią norite redaguoti." notice_no_issue_selected: "Nepasirinkta nė viena problema! Prašom pažymėti problemą, kurią norite redaguoti."
notice_account_pending: "Jūsų paskyra buvo sukūrta ir dabar laukiama administratoriaus patvirtinimo." notice_account_pending: "Jūsų paskyra buvo sukūrta ir dabar laukiama administratoriaus patvirtinimo."
error_scm_not_found: "Duomenys ir/ar pakeitimai saugykloje(repozitorojoje) neegzistuoja."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Jūsų Redmine slaptažodis mail_subject_lost_password: Jūsų Redmine slaptažodis
mail_body_lost_password: 'Norėdami pakeisti Redmine slaptažodį, spauskite nuorodą:' mail_body_lost_password: 'Norėdami pakeisti Redmine slaptažodį, spauskite nuorodą:'
mail_subject_register: 'Redmine paskyros aktyvavymas' mail_subject_register: 'Redmine paskyros aktyvavymas'

View File

@ -68,12 +68,14 @@ notice_successful_delete: Verwijderen succesvol.
notice_successful_connection: Verbinding succesvol. notice_successful_connection: Verbinding succesvol.
notice_file_not_found: De pagina die U probeerde te benaderen bestaat niet of is verwijderd. notice_file_not_found: De pagina die U probeerde te benaderen bestaat niet of is verwijderd.
notice_locking_conflict: De gegevens zijn gewijzigd door een andere gebruiker. notice_locking_conflict: De gegevens zijn gewijzigd door een andere gebruiker.
notice_scm_error: Deze ingang of revisie bestaat niet in de repository.
notice_not_authorized: Het is U niet toegestaan om deze pagina te raadplegen. notice_not_authorized: Het is U niet toegestaan om deze pagina te raadplegen.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: "Deze ingang of revisie bestaat niet in de repository."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Uw redMine wachtwoord mail_subject_lost_password: Uw redMine wachtwoord
mail_body_lost_password: 'Gebruik de volgende link om Uw wachtwoord te wijzigen:' mail_body_lost_password: 'Gebruik de volgende link om Uw wachtwoord te wijzigen:'
mail_subject_register: redMine account activatie mail_subject_register: redMine account activatie

View File

@ -68,9 +68,11 @@ notice_successful_delete: Udane usunięcie.
notice_successful_connection: Udane nawiązanie połączenia. notice_successful_connection: Udane nawiązanie połączenia.
notice_file_not_found: Strona do której próbujesz się dostać nie istnieje lub została usunięta. notice_file_not_found: Strona do której próbujesz się dostać nie istnieje lub została usunięta.
notice_locking_conflict: Dane poprawione przez innego użytkownika. notice_locking_conflict: Dane poprawione przez innego użytkownika.
notice_scm_error: Wejście i/lub zmiana nie istnieje w repozytorium.
notice_not_authorized: Nie jesteś autoryzowany by zobaczyć stronę. notice_not_authorized: Nie jesteś autoryzowany by zobaczyć stronę.
error_scm_not_found: "Wejście i/lub zmiana nie istnieje w repozytorium."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Twoje hasło do redMine mail_subject_lost_password: Twoje hasło do redMine
mail_body_lost_password: 'W celu zmiany swojego hasła użyj poniższego odnośnika:' mail_body_lost_password: 'W celu zmiany swojego hasła użyj poniższego odnośnika:'
mail_subject_register: Aktywacja konta w redMine mail_subject_register: Aktywacja konta w redMine

View File

@ -68,12 +68,14 @@ notice_successful_delete: Apagado com sucesso.
notice_successful_connection: Conectado com sucesso. notice_successful_connection: Conectado com sucesso.
notice_file_not_found: A pagina que voce esta tentando acessar nao existe ou foi excluida. notice_file_not_found: A pagina que voce esta tentando acessar nao existe ou foi excluida.
notice_locking_conflict: Os dados foram atualizados por um outro usuario. notice_locking_conflict: Os dados foram atualizados por um outro usuario.
notice_scm_error: A entrada e/ou a revisao nao existem no repositorio.
notice_not_authorized: You are not authorized to access this page. notice_not_authorized: You are not authorized to access this page.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: "A entrada e/ou a revisao nao existem no repositorio."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Sua senha do redMine. mail_subject_lost_password: Sua senha do redMine.
mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:' mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:'
mail_subject_register: Ativacao de conta do redMine. mail_subject_register: Ativacao de conta do redMine.

View File

@ -68,12 +68,14 @@ notice_successful_delete: Apagado com sucesso.
notice_successful_connection: Conectado com sucesso. notice_successful_connection: Conectado com sucesso.
notice_file_not_found: A página que você está tentando acessar não existe ou foi excluída. notice_file_not_found: A página que você está tentando acessar não existe ou foi excluída.
notice_locking_conflict: Os dados foram atualizados por um outro usuário. notice_locking_conflict: Os dados foram atualizados por um outro usuário.
notice_scm_error: A entrada e/ou a revisão não existem no repositório.
notice_not_authorized: Você não está autorizado a acessar esta página. notice_not_authorized: Você não está autorizado a acessar esta página.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: "A entrada e/ou a revisão não existem no repositório."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Sua senha do redMine. mail_subject_lost_password: Sua senha do redMine.
mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:' mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:'
mail_subject_register: Ativação de conta do redMine. mail_subject_register: Ativação de conta do redMine.

View File

@ -68,12 +68,14 @@ notice_successful_delete: Stergere cu succes.
notice_successful_connection: Conectare cu succes. notice_successful_connection: Conectare cu succes.
notice_file_not_found: Pagina dorita nu exista sau nu mai este valabila. notice_file_not_found: Pagina dorita nu exista sau nu mai este valabila.
notice_locking_conflict: Informatiile au fost modificate de un alt utilizator. notice_locking_conflict: Informatiile au fost modificate de un alt utilizator.
notice_scm_error: Articolul sau reviziunea nu exista in stoc (Repository).
notice_not_authorized: Nu aveti autorizatia sa accesati aceasta pagina. notice_not_authorized: Nu aveti autorizatia sa accesati aceasta pagina.
notice_email_sent: Un e-mail a fost trimis la adresa %s notice_email_sent: Un e-mail a fost trimis la adresa %s
notice_email_error: Eroare in trimiterea e-mailului (%s) notice_email_error: Eroare in trimiterea e-mailului (%s)
notice_feeds_access_key_reseted: Parola de acces RSS a fost resetat. notice_feeds_access_key_reseted: Parola de acces RSS a fost resetat.
error_scm_not_found: "Articolul sau reviziunea nu exista in stoc (Repository)."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Your Redmine password mail_subject_lost_password: Your Redmine password
mail_body_lost_password: 'To change your Redmine password, click on the following link:' mail_body_lost_password: 'To change your Redmine password, click on the following link:'
mail_subject_register: Redmine account activation mail_subject_register: Redmine account activation

View File

@ -68,7 +68,6 @@ notice_successful_delete: Удаление успешно завершено.
notice_successful_connection: Подключение успешно установлено. notice_successful_connection: Подключение успешно установлено.
notice_file_not_found: Страница, на которую вы пытаетесь зайти, не существует или удалена. notice_file_not_found: Страница, на которую вы пытаетесь зайти, не существует или удалена.
notice_locking_conflict: Информация обновлена другим пользователем. notice_locking_conflict: Информация обновлена другим пользователем.
notice_scm_error: Записи и/или исправления нет в репозитории.
notice_not_authorized: У вас нет прав для посещения данной страницы. notice_not_authorized: У вас нет прав для посещения данной страницы.
notice_email_sent: Отправлено письмо %s notice_email_sent: Отправлено письмо %s
notice_email_error: Во время отправки письма произошла ошибка (%s) notice_email_error: Во время отправки письма произошла ошибка (%s)
@ -76,6 +75,9 @@ notice_feeds_access_key_reseted: Ваш ключ доступа RSS был пе
notice_failed_to_save_issues: "Не удалось сохранить %d пункт(ов)из %d выбранных: %s." notice_failed_to_save_issues: "Не удалось сохранить %d пункт(ов)из %d выбранных: %s."
notice_no_issue_selected: "Не выбрано ни одной задачи! Пожалуйста, отметьте задачи, которые вы хотите отредактировать." notice_no_issue_selected: "Не выбрано ни одной задачи! Пожалуйста, отметьте задачи, которые вы хотите отредактировать."
error_scm_not_found: Записи и/или исправления нет в репозитории.
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Ваш Redmine пароль mail_subject_lost_password: Ваш Redmine пароль
mail_body_lost_password: 'Для изменения Redmine пароля, зайдите по следующей ссылке:' mail_body_lost_password: 'Для изменения Redmine пароля, зайдите по следующей ссылке:'
mail_subject_register: Активация учетной записи Redmine mail_subject_register: Активация учетной записи Redmine

View File

@ -68,7 +68,6 @@ notice_successful_delete: Uspešno brisanje.
notice_successful_connection: Uspešna konekcija. notice_successful_connection: Uspešna konekcija.
notice_file_not_found: Stranica kojoj pokušavate da pristupite ne postoji ili je uklonjena. notice_file_not_found: Stranica kojoj pokušavate da pristupite ne postoji ili je uklonjena.
notice_locking_conflict: Podaci su izmenjeni od strane drugog korisnika. notice_locking_conflict: Podaci su izmenjeni od strane drugog korisnika.
notice_scm_error: Unos i/ili revizija ne postoji u spremištu.
notice_not_authorized: Niste ovlašćeni da pristupite ovoj stranici. notice_not_authorized: Niste ovlašćeni da pristupite ovoj stranici.
notice_email_sent: Email je poslat %s notice_email_sent: Email je poslat %s
notice_email_error: Došlo je do greške pri slanju maila (%s) notice_email_error: Došlo je do greške pri slanju maila (%s)
@ -76,6 +75,9 @@ notice_feeds_access_key_reseted: Vaš RSS pristup je resetovan.
notice_failed_to_save_issues: "Neuspešno snimanje %d kartica na %d izabrano: %s." notice_failed_to_save_issues: "Neuspešno snimanje %d kartica na %d izabrano: %s."
notice_no_issue_selected: "Nijedna kartica nije izabrana! Molim, izaberite kartice koje želite za editujete." notice_no_issue_selected: "Nijedna kartica nije izabrana! Molim, izaberite kartice koje želite za editujete."
error_scm_not_found: "Unos i/ili revizija ne postoji u spremištu."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Vaša redMine lozinka mail_subject_lost_password: Vaša redMine lozinka
mail_body_lost_password: 'Da biste izmenili vašu Redmine lozinku, kliknite na sledeći link:' mail_body_lost_password: 'Da biste izmenili vašu Redmine lozinku, kliknite na sledeći link:'
mail_subject_register: aktivacija redMine naloga mail_subject_register: aktivacija redMine naloga

View File

@ -68,12 +68,14 @@ notice_successful_delete: Lyckad borttagning.
notice_successful_connection: Lyckad uppkoppling. notice_successful_connection: Lyckad uppkoppling.
notice_file_not_found: Sidan du försökte komma åt existerar inte eller har blivit borttagen. notice_file_not_found: Sidan du försökte komma åt existerar inte eller har blivit borttagen.
notice_locking_conflict: Data har uppdaterats av en annan användare. notice_locking_conflict: Data har uppdaterats av en annan användare.
notice_scm_error: Inlägg och/eller revision finns inte i repositoriet.
notice_not_authorized: You are not authorized to access this page. notice_not_authorized: You are not authorized to access this page.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: "Inlägg och/eller revision finns inte i repositoriet."
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: Ditt redMine lösenord mail_subject_lost_password: Ditt redMine lösenord
mail_body_lost_password: 'För att ändra lösenord, följ denna länk:' mail_body_lost_password: 'För att ändra lösenord, följ denna länk:'
mail_subject_register: redMine kontoaktivering mail_subject_register: redMine kontoaktivering

View File

@ -68,7 +68,6 @@ notice_successful_delete: 刪除成功
notice_successful_connection: Successful connection. notice_successful_connection: Successful connection.
notice_file_not_found: The page you were trying to access doesn't exist or has been removed. notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
notice_locking_conflict: Data have been updated by another user. notice_locking_conflict: Data have been updated by another user.
notice_scm_error: SCM 儲存庫中找不到這個專案或版本。
notice_not_authorized: 你未被授權存取此頁面。 notice_not_authorized: 你未被授權存取此頁面。
notice_email_sent: 郵件已經成功寄送至以下收件者: %s notice_email_sent: 郵件已經成功寄送至以下收件者: %s
notice_email_error: 寄送郵件的過程中發生錯誤 (%s) notice_email_error: 寄送郵件的過程中發生錯誤 (%s)
@ -78,6 +77,9 @@ notice_no_issue_selected: "No issue is selected! Please, check the issues you wa
notice_account_pending: "您的帳號已經建立,正在等待管理員的審核。" notice_account_pending: "您的帳號已經建立,正在等待管理員的審核。"
notice_default_data_loaded: Default configuration successfully loaded. notice_default_data_loaded: Default configuration successfully loaded.
error_scm_not_found: SCM 儲存庫中找不到這個專案或版本。
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
error_can_t_load_default_data: "Default configuration could not be loaded: %s" error_can_t_load_default_data: "Default configuration could not be loaded: %s"
mail_subject_lost_password: 您的 Redmine 網站密碼 mail_subject_lost_password: 您的 Redmine 網站密碼

View File

@ -71,12 +71,14 @@ notice_successful_delete: 删除成功
notice_successful_connection: 连接成功 notice_successful_connection: 连接成功
notice_file_not_found: 您访问的页面不存在或已被删除。 notice_file_not_found: 您访问的页面不存在或已被删除。
notice_locking_conflict: 数据已被另一个用户更新 notice_locking_conflict: 数据已被另一个用户更新
notice_scm_error: 在版本库中不存在该条目或修订
notice_not_authorized: You are not authorized to access this page. notice_not_authorized: You are not authorized to access this page.
notice_email_sent: An email was sent to %s notice_email_sent: An email was sent to %s
notice_email_error: An error occurred while sending mail (%s) notice_email_error: An error occurred while sending mail (%s)
notice_feeds_access_key_reseted: Your RSS access key was reseted. notice_feeds_access_key_reseted: Your RSS access key was reseted.
error_scm_not_found: 在版本库中不存在该条目或修订
error_scm_command_failed: "An error occurred when trying to access the repository: %s"
mail_subject_lost_password: 您的redMine口令 mail_subject_lost_password: 您的redMine口令
mail_body_lost_password: 'To change your Redmine password, click on the following link:' mail_body_lost_password: 'To change your Redmine password, click on the following link:'
mail_subject_register: redMine帐户激活 mail_subject_register: redMine帐户激活

View File

@ -120,7 +120,7 @@ module Redmine
rescue Errno::ENOENT => e rescue Errno::ENOENT => e
# The command failed, log it and re-raise # The command failed, log it and re-raise
logger.error("SCM command failed: #{cmd}\n with: #{e.message}") logger.error("SCM command failed: #{cmd}\n with: #{e.message}")
raise CommandFailed raise CommandFailed.new(e.message)
end end
end end
end end

View File

@ -66,7 +66,6 @@ module Redmine
entries = Entries.new entries = Entries.new
cmd = "#{SVN_BIN} list --xml #{target(path)}@#{identifier}" cmd = "#{SVN_BIN} list --xml #{target(path)}@#{identifier}"
cmd << credentials_string cmd << credentials_string
cmd << " 2>&1"
shellout(cmd) do |io| shellout(cmd) do |io|
output = io.read output = io.read
begin begin