Subversionの小技

PHP

08:59:36, by dozo Email , 35 words, 3583 views   Japanese (JP) del.icio.us

覚えておくと便利。

(ノ・・)ン。。。。。。(((●コロコロッ

無視リスト入り
$ svn propedit svn:ignore [direcotory name]


cgi実行属性追加
$ svn propedit svn:executable *.php


リポジトリ変更
$ svn switch FROM TO


リポジトリサーバ変更
$ svn switch --relocate FROM TO


まだまだ、使いこなす道は遠いな。

[More:]


logやtemporaryディレクトリをコミットしていると、
svn statusが?だらけでとんでもないことになる。
それを回避するためにsvn:ignoreを打ってコミットしておくと、
その名の通りガン無視で通してくれる。

SVNをWindows上でコミットすると、
属性が非常に適当になる。
通常はそれでも構わないのだが、
cgiやシェルスクリプトの実行属性だけはなんとか保持しておきたい。
それをするためにsvn:executableを打ってコミットしておくと、
ファイルを消そうが何しようが実行属性が付いている。


すでにチェックアウトしているデータがあったとして、
その内容を全く触らずにリポジトリを変更したい場合がある。
異なるリポジトリに変更したい場合はsvn switchと打ち込む。
ドメインごとことなる場合はrelocateオプション付きで打ち込む。

Trackback address for this post:

http://hain.jp/htsrv/trackback.php/175

Comments, Trackbacks:

No Comments/Trackbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case insensitive)

powered by b2evolution

shinobi

Neighbors
Relative
Favorites
PR

極論istの技術屋を始めて早幾年。 流れの速い業界の波にもまれながらも精一杯生きている様をとくとごらんあれ。

Archives
スポンサー

Latest bookmark
Search

Categories

Who's Online?
Misc
Syndicate this blog XML

Valid XHTML 1.0! Valid CSS! Valid RSS 2.0! Valid Atom 1.0!