Allow callers to create one update per patch set of the change, looking up by patch set ID and creating as necessary. BatchUpdate will take care of creating a BatchMetaDataUpdate and applying the updates in order, oldest patch set to newest patch set. Force callers to specify the patch set instead of implicitly using the current patch set. There were some places we were forgetting to do this, so it's good to have made it required. We will eventually need to update multiple patch sets at once during submit, where approvals may be copied between patch sets. Change-Id: I35e9378d6f9b494db516f8d8c38c5b6e75c2f4c7
		
			
				
	
	
		
			39 lines
		
	
	
		
			826 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			826 B
		
	
	
	
		
			Python
		
	
	
	
	
	
SRC = 'src/main/java/com/google/gerrit/reviewdb/'
 | 
						|
TESTS = 'src/test/java/com/google/gerrit/reviewdb/'
 | 
						|
 | 
						|
gwt_module(
 | 
						|
  name = 'client',
 | 
						|
  srcs = glob([SRC + 'client/**/*.java']),
 | 
						|
  gwt_xml = SRC + 'ReviewDB.gwt.xml',
 | 
						|
  deps = [
 | 
						|
    '//gerrit-extension-api:client',
 | 
						|
    '//lib:gwtorm_client',
 | 
						|
    '//lib:gwtorm_client_src'
 | 
						|
  ],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'server',
 | 
						|
  srcs = glob([SRC + '**/*.java']),
 | 
						|
  resources = glob(['src/main/resources/**/*']),
 | 
						|
  deps = [
 | 
						|
    '//gerrit-extension-api:api',
 | 
						|
    '//lib:guava',
 | 
						|
    '//lib:gwtorm',
 | 
						|
  ],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_test(
 | 
						|
  name = 'client_tests',
 | 
						|
  srcs = glob([TESTS + 'client/**/*.java']),
 | 
						|
  deps = [
 | 
						|
    ':client',
 | 
						|
    '//lib:gwtorm',
 | 
						|
    '//lib:truth',
 | 
						|
  ],
 | 
						|
  source_under_test = [':client'],
 | 
						|
  visibility = ['//tools/eclipse:classpath'],
 | 
						|
)
 |