feat: Add patchset history and diff support with cvsps integration
- Add cvsps package to Docker dependencies - Implement patchset retrieval and diff endpoints in API - Add _run_cvsps_command() helper for cvsps integration - Enhance file history parsing with log message extraction - Improve UI with enhanced styling and patchset functionality
This commit is contained in:
parent
c263092c10
commit
d3b40ae93f
9 changed files with 660 additions and 26 deletions
19
ui/api.js
19
ui/api.js
|
|
@ -99,6 +99,25 @@ class CVSProxyAPI {
|
|||
return this.request(`/diff?${params.toString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get repository patchset history
|
||||
* @returns {Promise<Array>} Array of patchset objects
|
||||
*/
|
||||
async getPatchsets() {
|
||||
return this.request('/patchsets');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get diff for a specific patchset
|
||||
* @param {string} patchset - Patchset number
|
||||
* @returns {Promise<object>} Diff object with diff property
|
||||
*/
|
||||
async getPatchsetDiff(patchset) {
|
||||
const params = new URLSearchParams();
|
||||
params.append('patchset', patchset);
|
||||
return this.request(`/patchset-diff?${params.toString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check API health
|
||||
* @returns {Promise<object>} Health status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue