]> source.dussan.org Git - jgit.git/commit
ReceiveCommand.abort(): Utility to mark batch of commands as failed 04/64604/1
authorShawn Pearce <spearce@spearce.org>
Mon, 18 Jan 2016 18:42:00 +0000 (10:42 -0800)
committerShawn Pearce <spearce@spearce.org>
Mon, 18 Jan 2016 19:39:09 +0000 (11:39 -0800)
commiteadfcd3ec166c55c1ff3f3fe0b5e97dd94ff8d83
treef809839ade46cbf832328b8f4d0e5bc3a33aa8cf
parentf52581c6a50d841e1939dbd69d174effa63c8c57
ReceiveCommand.abort(): Utility to mark batch of commands as failed

If one or more commands is failing the entire group usually has to
also fail with "transaction aborted". Pull this loop into a helper
so the idiom can be easily reused in several places throughout JGit.

Change-Id: I3b9399b7e26ce2b0dc5f7baa85d585a433b4eaed
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/Command.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTree.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTreeBatch.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java