Skip to content

Commit

Permalink
Trivial: let dump-repo script dump HHAS as well as bytecode
Browse files Browse the repository at this point in the history
Summary: What the title says

Reviewed By: markw65

Differential Revision: D6064258

fbshipit-source-id: 273a385fb768c01d0ed6248db1dbd399e185bdac
  • Loading branch information
Aaron Roth authored and hhvm-bot committed Oct 17, 2017
1 parent 5bf46ea commit 2a79a9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hphp/tools/dump-repo
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ fi
repo=$1
pattern=$2

if [[ -n $DUMP_HHAS ]] ; then
dump_what=-vEval.DumpHhas=true
else
dump_what=-vEval.DumpBytecode=1
fi

table=$(sqlite3 $repo ".tables 'FileMd5%'")
where=
if [[ -n $pattern ]] ; then
Expand All @@ -19,6 +25,6 @@ sqlite3 $repo "select path from $table $where" | \
grep -v "^/:" | \
xargs -I% sh -c \
"echo ==== Dumping % ======; \
${HHVM:-hhvm} -vRepo.Authoritative=true -vRepo.Commit=false -vRepo.{Central,Local}.Path=$repo -vEval.DumpBytecode=1 --lint=% 2>&1 | \
${HHVM:-hhvm} -vRepo.Authoritative=true -vRepo.Commit=false -vRepo.{Central,Local}.Path=$repo $dump_what --lint=% 2>&1 | \
grep -v '^No syntax errors detected in'; \
echo"

0 comments on commit 2a79a9c

Please sign in to comment.