How To Get The File Count For Each Revision Of Mercurial Using Python Script
import sys import hglib import re # figure out what repo path to use if len(sys.argv) > 1: repo1 = sys.argv[1] # connect to hg client1 = hglib.open(repo1) for data1
Solution 1:
You can use status
:
>>>changes = client.status(rev=[start, end], modified=True, added=True)>>>len(changes)
6
I've now found you can also do:
>>>changes = client.status(change=[start, end])>>>len(changes)
6
Post a Comment for "How To Get The File Count For Each Revision Of Mercurial Using Python Script"