ユーザ用ツール

サイト用ツール


subversion:tips

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
subversion:tips [2014/02/26 02:31] – 削除 clownclownsubversion:tips [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
 +====== Tips ======
  
 +===== .svnの一括削除 =====
 +==== Windows  ====
 +<code>
 +for /R %i in (.svn) do rd /Q /S "%i"
 +</code>
 +
 +==== Linux  ====
 +<code>
 +rm -rf `find ./ -type d -name .svn ! -regex \.svn/. -print`
 +</code>
 +
 +
 +===== SVNコマンド実行時に、「パスワードを保存しますか?」と聞かれるのを抑制したい。 =====
 +<code>
 +# /usr/bin/svn diff -r BASE:HEAD {ローカルリポジトリパス} --no-diff-deleted
 +認証領域: <https://{ホスト}> Plese enter usr/pass
 +ユーザ名: svnuser
 +'svnuser' のパスワード: 
 +
 +-----------------------------------------------------------------------
 +ATTENTION!  Your password for authentication realm:
 +
 +   <https://osaka.istpika.net:443> Plese enter usr/pass
 +
 +can only be stored to disk unencrypted!  You are advised to configure
 +your system so that Subversion can store passwords encrypted, if
 +possible.  See the documentation for details.
 +
 +You can avoid future appearances of this warning by setting the value
 +of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
 +'/root/.subversion/servers'.
 +-----------------------------------------------------------------------
 +暗号化されていないパスワードを保存しますか (yes/no)? no
 +</code>
 +
 +configファイルを編集する
 +
 +<code>
 +# vi ~/.subversion/config
 +
 +store-passwords = no
 +store-plaintext-passwords = no
 +</code>
 +
 +===== 差分のファイル名だけ抽出 =====
 +==== 作業コピーの手元の変更を表示する  ====
 +e.g. ローカルの変更ファイルを確認するとき
 +
 +<code>
 +# svn diff PATH | grep "^Index: " | sed 's/^Index: //'
 +</code>
 +
 +==== 作業コピーと最新リビジョンの差分  ====
 +e.g. 最新の更新状況(ローカルと最新の違い)を確認するとき
 +
 +<code>
 +# svn diff -r BASE:HEAD PATH | grep "^Index: " | sed 's/^Index: //'
 +</code>
 +
 +==== 最新リビジョンとひとつ前の差分  ====
 +e.g. svn up後に更新内容を確認したいとき
 +
 +<code>
 +# svn diff -r PREV:HEAD PATH | grep "^Index: " | sed 's/^Index: //'
 +</code>
subversion/tips.1393381881.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)