Reconciling Commits vs Revisions

All the eyeql documentation equates a commit to a revision. However when I compare the results of an eyeql query in the form "select revisions where date in [ 2013-01-01, 2013-09-20 ] return count(revisions)" to the Repository statistics screen in Fisheye, eyeql almost always returns a significantly higher number than the commit count shown on the screen.

Since I'm querying for less than the last 12 months of data, I expect the revision count to be less than the commit count shown on the screen. What don't I understand?

2 answers

1 accepted

This widget could not be displayed.
Lukasz Pater Atlassian Team Sep 24, 2013

Hi Doug,

a changeset is a set of file revisions. A single revision is a single file modified in the changeset.

So an svn commit with three file changes, will be a single commit or changeset, but three revisions.

See here for some more details: https://confluence.atlassian.com/display/FISHEYE/Glossary#Glossary-Changeset

Lukasz,

Thank you for the answer. It matches what I might have guessed.

Which leads to the follow-on questions:

  1. "Can I query Commits through EyeQL?"
  2. "Why does the EyeQL documentation refer to revisions as commits?"

For example, the EyeQL Reference Guide page has an example:

Find commits that do not have comments:
select revisions from dir / where comment = "" group by changeset

Lukasz Pater Atlassian Team Sep 24, 2013

1. While the select clauses of EyeQL queries deal with revisions exclusively, you can get some changeset data, using the 'group by' clause and an aggregate column.

Something like this (note that at least one aggregate clause is required for the grouping to take effect):

select revisions from dir "/"
where author = "lukasz pater <lpater@atlassian.com>" 
order by date  desc  
group by changeset 
return csid, comment, date, author, count(revisions)

2. Seems like a documentation bug. I'll try to get it fixed.

This widget could not be displayed.

The repositories are Subversion

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

30 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you