Query on EyeQL

Rajeev dave January 27, 2013

Hello,

I need help on writing a query for getting the number of Lines of code changed in a given branch (changed, added or deleted) between 2 dates (or tags)

1 answer

0 votes
Sergey Svishchev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2013
select revisions where 
(on branch fileutil and date in [2012-07-19T22:00:00.00Z, 2012-08-01T21:59:59.00Z]) 
order by date desc
return sum(linesAdded), sum(linesRemoved)

(Number of changed lines is not tracked separately.)
Rajeev dave February 3, 2013

I guess I need to explain "between 2 dates" a bit better.

Within the date boundaries given, I can potentially add some lines of code and subsequently delete them. Impact of changes like this should not be reflected in the LoC calculation

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events