Page MenuHomePhabricator

CodeReview API need to give info for a list of revisions
Closed, ResolvedPublic

Description

Given a revision list, there is currently no way to get their status, timestamp, author ...
The list system works by timestamp ordering, not for an arbitrary list of revisions.

Example usage :
When tracking pending merges, the list of revisions is not contiguous. It might be
useful to get those revisions status to check if we can safely merge them.

$ svn mergeinfo --show-revs eligible trunk/extensions/CodeReview branches/wmf/1.16wmf4/extensions/CodeReview


Version: unspecified
Severity: enhancement

Details

Reference
bz26061

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport set Reference to bz26061.
bzimport added a subscriber: Unknown Object (MLST).

Just wondering how best to limit this.

Technically, if we do it like the GUI, one call should give one set of detailed results..

Obviously, any call for a specific revs(s), should override the range one from before...

Do we want to limit the request for more detailed results to 1 rev, or just a low number?

I've essentially done this, just need to work out some form of query "limit".

Do you want any additional information, or just what's there already?

Current: revid|status|commentcount|path|message|author|timestamp

Give me a shout =)

I'm just wondering if using a "trivial number", like 10..

e.g.

			'revs' => array(
				ApiBase::PARAM_ISMULTI => true,
				ApiBase::PARAM_TYPE => 'integer',
				ApiBase::PARAM_MIN => 1,
				ApiBase::PARAM_MAX => 10,
				ApiBase::PARAM_MAX2 => 10
			),

Ignore that MAX/MAX2 stuff, that's me being stupid