顯示具有 [SVN] 標籤的文章。 顯示所有文章
顯示具有 [SVN] 標籤的文章。 顯示所有文章

2013年5月9日 星期四

XCODE下使用SVN

在MAC Lion 10.7.5 XCode 4.6使用SVN 之前一直出問題

在改好code之後,file -> commit 卻會跳出

The operation could not be performed because no valid working copies were
found.

please verify that your files are under source control and try again.

好像一直無法連接到svn那端,

後來研究了發現這樣做可以解決:

1. 先用terminal 下指令 svn list server端svn的位置

2. 進入xcode-> window -> organizer-> Repositories

   ★若裡面已有加入的這個位置,請先刪掉重新點左下角 + -> Add Repository

3. 先checkout 下載你的檔案 若server端無檔案 就import你要的專案即可上傳。

4. 打開checkout的專案 修改 code 存檔。

5. File -> Source Control -> commit 即可連結上這個svn server位置 上傳定版的檔。

---
提供網路找到的別的方式 但我沒試過,因為我找不到svnserve.conf在哪  == =="


使用命令行修改代碼目錄下conf子目錄下的svnserve.conf配置文件
把anon-access=read改成anon-access=none.

如下:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = none
auth-access = write


2013年5月7日 星期二

Titanium 安裝 SVN 錯誤

今天在Titanium要安裝SVN的時候發現無法安裝,

從help -> install new software裡面找到svn後

安裝就跳出

titanium svn An error occurred while collecting items to be installed..
一長串

沒有記錄到,因為不小時裝起來了

怎麼安裝起來的其實我也不清楚,

我原本在 install new software的地方直接選 All Available Site,

在搜尋直接查SVN卻無法安裝,一直會跳出此error,

後來我把titanium更新之後,

在install new software->add -> name 隨意

location-> 輸入

http://download.eclipse.org/releases/helios

再到搜尋輸入SVN安裝,即可正常安裝~!

詳細安裝請參考:

https://wiki.appcelerator.org/display/tis/Subversion



2013年5月5日 星期日

mac安裝eclipse的svn外掛(subclipse)


mac安裝eclipse的svn外掛(subclipse)

我的系統是mac os 10.7.5

eclipse-->help-->install new software --> add

name就隨意打(ex:subclipse) ,網址打 

http://subclipse.tigris.org/update_1.8.x 

出現subclipse與svnKit 都打勾,一直下一步安裝結束重開ecilpse。

重開完畢到偏好設定->Team->SVN ->team

發現javaHL出問題,

然後網路說要自己更新javaHK

http://www.macports.org/install.php  下載對應的 pkg檔(看你是Lioin還是mountain還是雪豹)

下載完安裝,

然後去terminal執行  (先移到root根目錄)

sudo port install subversion-javahlbindings

若發現 出現   

Error: Port subversion-javahlbindings not found 的錯誤,

請先執行

sudo port -v selfupdate

結果若又出現 

-->  Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: Connection refused (61)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

的錯誤的話,

先確認 你網路的port或防火牆是不是有檔,

或你先換個3G網路試試

執行  sudo port -v selfupdate 成功的話會出現以下

-macteki-MacBook-Pro:/ mac$ sudo port selfupdate

--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.3 installed,
MacPorts base version 2.1.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
  
  
 然後再執行  

 sudo port install subversion-javahlbindings

 就會開始安裝,要一陣子讓他跑一下~

 以上~