Replace writeRef with RefLock instances
commit238f49e3c379466913391d1796f8fcd21e976ebf
authorShawn O. Pearce <spearce@spearce.org>
Wed, 16 May 2007 22:46:06 +0000 (16 18:46 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 16 May 2007 22:46:06 +0000 (16 18:46 -0400)
tree977af1917a867a6f2c4555d0f64b69c23df44f4a
parente20eee7dd2612ff79f62fdbfccfae130e05b20a0
Replace writeRef with RefLock instances

Our jgit RefLock class is meant to implement the same locking policy
that core Git uses, meaning it should be safe to run both jgit and
core Git on the same repository at the same time and not run into lost
updates due to locking problems.

Unfortunately Robin's implementation of writeRef doesn't use that same
policy, which makes it harder to interoperate nicely with core Git.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.core.test/src/org/spearce/egit/core/internal/mapping/T0002_history.java
org.spearce.egit.core.test/src/org/spearce/egit/core/op/T0001_ConnectProviderOperationTest.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java