Exemple #1
0
ParseOpts()

#
# Read the config files.
#
ConfigFile.ConfigFile(CFName, DirName)

TotalChanged = TotalAdded = TotalRemoved = 0

#
# Snarf changesets.
#
print >> sys.stderr, str(DateFrom) + ' - ' + str(DateTo) + '\r'
print >> sys.stderr, 'Grabbing changesets...\r'

patches = logparser.LogPatchSplitter(InputData, DateFrom, DateTo)
printcount = CSCount = 0

for logpatch in patches:
    if (printcount % 10) == 0:
        print >> sys.stderr, 'Grabbing changesets...%d\r' % printcount,
    printcount += 1

    # We want to ignore commits on svn tags since in Subversion
    # thats mean a copy of the whole repository, which leads to
    # wrong results.  Some migrations from Subversion to Git does
    # not catch all this tags/copy and import them just as a new
    # big changeset.
    if is_svntag(logpatch):
        continue
Exemple #2
0
#
if AkpmOverLt == 1:
    Linus = ('*****@*****.**',
             LookupStoreHacker('Linus Torvalds',
                               '*****@*****.**'))
    Akpm = ('*****@*****.**',
            LookupStoreHacker('Andrew Morton', '*****@*****.**'))

TotalChanged = TotalAdded = TotalRemoved = 0

#
# Snarf changesets.
#
print >> sys.stderr, 'Grabbing changesets...\r',

patches = logparser.LogPatchSplitter(sys.stdin)
printcount = CSCount = 0

for logpatch in patches:
    if (printcount % 50) == 0:
        print >> sys.stderr, 'Grabbing changesets...%d\r' % printcount,
    printcount += 1

    # We want to ignore commits on svn tags since in Subversion
    # thats mean a copy of the whole repository, which leads to
    # wrong results.  Some migrations from Subversion to Git does
    # not catch all this tags/copy and import them just as a new
    # big changeset.
    if is_svntag(logpatch):
        continue