Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Total Count of Change Sets for Mercurial and Git

Tags:

git

mercurial

Is it possible to count the number of Mercurial/Git change sets with a simple command line with arguments?

like image 205
Maverick Avatar asked Nov 30 '22 13:11

Maverick


1 Answers

For mercurial just check the numeric revision id of 'tip' (defined as the highest numbered revision):

$ hg id --num --rev tip
97
like image 173
Ry4an Brase Avatar answered Dec 02 '22 01:12

Ry4an Brase