예제 #1
0
    # TODO for some reason I needed this afterwards.
    git --git-dir=tmp/repo.tmp/.git push "$remote" 'master'
"""

import datetime
import subprocess
import time

import util

email = b'*****@*****.**'
name = b''

util.init()

tree = util.create_tree_with_one_file()
commit = None
n = 1000000
for i in range(n):
    now = int(time.time())
    commit, _, _ = util.save_commit_object(
        tree,
        (commit, ),
        author_date_s=0,
        author_email=email,
        author_name=name,
        committer_date_s=0,
        committer_email=email,
        committer_name=name,
        message=b'',
    )
    # TODO for some reason I needed this afterwards.
    git --git-dir=tmp/repo.tmp/.git push "$remote" 'master'
"""

import datetime
import subprocess
import time

import util

email = b'*****@*****.**'
name = b'Ciro Santilli'

util.init()

tree = util.create_tree_with_one_file()
commit = None
n = 1000000
percent = (n / 100)
p = 0
for i in range(n):
    now = int(time.time())
    commit, _, _ = util.save_commit_object(
        tree,
        (commit,),
        author_date_s=now,
        author_email=email,
        author_name=name,
        committer_date_s=now,
        committer_email=email,
        committer_name=name,