Support branch creation via REST
A new branch can be created by PUT on '/projects/<project-name>/branches/<ref>. The WebUI was adapted to use this new REST endpoint to create branches. The old RPC for creating a branch in ProjectAdminService was deleted. Change-Id: Id94bc4737eedde383507c7c567b3b6b102b105c5
This commit is contained in:
committed by
Shawn Pearce
parent
94a928b9a9
commit
5c0d6b33ff
@@ -56,11 +56,6 @@ public interface ProjectAdminService extends RemoteJsonService {
|
||||
void listBranches(Project.NameKey projectName,
|
||||
AsyncCallback<ListBranchesResult> callback);
|
||||
|
||||
@Audit
|
||||
@SignInRequired
|
||||
void addBranch(Project.NameKey projectName, String branchName,
|
||||
String startingRevision, AsyncCallback<AddBranchResult> callback);
|
||||
|
||||
@Audit
|
||||
@SignInRequired
|
||||
void deleteBranch(Project.NameKey projectName, Set<Branch.NameKey> ids,
|
||||
|
||||
Reference in New Issue
Block a user