git-svn の使い方をメモする。他によいプラクティスがあれば指摘していただけるとありがたい。
SVN のブランチと git のブランチが混在しているため、ここではブランチという語を以下のように区別する。
- ブランチ、 SVN ブランチ:$SVN_REPO/branches 以下にあるディレクトリ
- ローカルブランチ:git のローカルブランチ
- リモートブランチ:git のリモートブランチ
/* | |
implicit parameterを参照するには、コンパニオンオブジェクト内の定義を探す場合も、その定義位置より後でないとダメみたい。 | |
以下のコードだと | |
error: could not find implicit value for evidence parameter of type RichGraphics.Drawer[MyLine] | |
g.draw(MyLine(10, 30, 50, 20)) | |
というエラーになる。 | |
new Frame { ... } の部分をコードの一番最後に移動すると、 | |
うまく動くようになる。 | |
*/ |
organization := "net.seratch" | |
name := "sandbox" | |
version := "0.1" | |
scalaVersion := "2.9.1" | |
libraryDependencies ++= Seq( | |
"junit" % "junit" % "4.9" withSources(), |
package main | |
import ( | |
"net" | |
"os" | |
) | |
func main() { | |
strEcho := "Halo" | |
servAddr := "localhost:6666" | |
tcpAddr, err := net.ResolveTCPAddr("tcp", servAddr) |
package controllers | |
import lib._ | |
import play.api.mvc._ | |
import play.api.libs.json._ | |
object Auth extends Controller { | |
val GITHUB = new OAuth2[GithubUser](OAuth2Settings( |
import java.io.File; | |
import org.tmatesoft.svn.core.SVNDepth; | |
import org.tmatesoft.svn.core.SVNException; | |
import org.tmatesoft.svn.core.SVNURL; | |
import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager; | |
import org.tmatesoft.svn.core.io.SVNRepository; | |
import org.tmatesoft.svn.core.io.SVNRepositoryFactory; | |
import org.tmatesoft.svn.core.wc.SVNClientManager; | |
import org.tmatesoft.svn.core.wc.SVNRevision; |
def index(id:String) = Action { | |
getFirstData(id) | |
} | |
private def getFirstData(id:String) = { | |
Cache.get(id) match { | |
case Some(id2) => getSecondData(id2) | |
case None => NotFound | |
} | |
} | |
private def getSecondData(id2:String) = { |
細かい点で間違いなどあるかと思います。fork して直していただけると助かります。
Finagle is built using sbt. We've included a bootstrap script to ensure the correct version of sbt is used. To build:
Finagle は sbt を使ってビルドしています。私たちは確実に適切なバージョンの sbt を使うようにブートストラップ用のスクリプトを含めています。このように実行します。
$ ./sbt test