diff options
author | datastore <foo@bar.org> | 2009-06-04 22:02:21 (GMT) |
---|---|---|
committer | datastore <foo@bar.org> | 2009-06-04 22:02:21 (GMT) |
commit | 5448990616450ce631f8fb9d958d83b54637598f (patch) | |
tree | 1f14ca0617eaf000f61d89f50de018cda43dfcf3 /benchmarks | |
parent | dad8c99ab3886b37567dad67b00e9d118fb2c492 (diff) |
add mercurial support, add TODO
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/TODO | 3 | ||||
-rwxr-xr-x | benchmarks/checkout | 3 | ||||
-rwxr-xr-x | benchmarks/commit | 4 | ||||
-rwxr-xr-x | benchmarks/create-branch | 4 | ||||
-rwxr-xr-x | benchmarks/create-repo | 7 | ||||
-rwxr-xr-x | benchmarks/runbench | 2 |
6 files changed, 22 insertions, 1 deletions
diff --git a/benchmarks/TODO b/benchmarks/TODO new file mode 100644 index 0000000..7296e8a --- /dev/null +++ b/benchmarks/TODO @@ -0,0 +1,3 @@ +- provide new content on create-branch +- add checks to verify correctness of VCS operations +- add more "tests" diff --git a/benchmarks/checkout b/benchmarks/checkout index 88c13be..bac9720 100755 --- a/benchmarks/checkout +++ b/benchmarks/checkout @@ -36,6 +36,9 @@ case "$vcs" in cp "${name}" "${dest}" ;; mercurial) + cd "${repobase}/${name}" + hg update "${branch}" + cp "${name}" "${dest}" ;; monotone) ;; diff --git a/benchmarks/commit b/benchmarks/commit index a79ea2b..6dd42cf 100755 --- a/benchmarks/commit +++ b/benchmarks/commit @@ -48,6 +48,10 @@ case "$vcs" in git commit -a -m x ;; mercurial) + cd "${repobase}/${name}" + hg branch "${branch}" + cp "${content}" "${name}" + hg commit -A -m x ;; monotone) ;; diff --git a/benchmarks/create-branch b/benchmarks/create-branch index 8c52f21..c1a21c5 100755 --- a/benchmarks/create-branch +++ b/benchmarks/create-branch @@ -37,6 +37,10 @@ case "$vcs" in git branch "${newbranch}" "${oldbranch}" ;; mercurial) + cd "${repobase}/${name}" + hg update "${oldbranch}" + hg branch "${newbranch}" + hg commit -m x ;; monotone) ;; diff --git a/benchmarks/create-repo b/benchmarks/create-repo index 0689e4f..d1b96e2 100755 --- a/benchmarks/create-repo +++ b/benchmarks/create-repo @@ -67,6 +67,13 @@ case "$vcs" in git branch first ;; mercurial) + mkdir "${repobase}/${name}" + cd "${repobase}" + hg init "${name}" + cd "${name}" + cp "${content}" "${name}" + hg branch first + hg commit -A -m x ;; monotone) ;; diff --git a/benchmarks/runbench b/benchmarks/runbench index c0eefc9..f9a9ecd 100755 --- a/benchmarks/runbench +++ b/benchmarks/runbench @@ -7,7 +7,7 @@ import sys import time -vcsNames=["arch", "bazaar", "cvs", "darcs", "git", "subversion"] +vcsNames=["arch", "bazaar", "cvs", "darcs", "git", "mercurial", "subversion"] base=os.path.dirname(os.path.abspath(sys.argv[0])) tmp=os.path.join(base, "tmp") testfilebase=os.path.join(base, "testfiles") |