I have some problems with importing Mercurial repo into Diffusion. It is stuck on 99.98%
I've found @epriestley [[ https://github.com/phacility/phabricator/issues/501#issuecomment-33975953 | comment ]] to try
$ ./scripts/repository/reparse.php --message --change --owners --herald --force rPa57db1b3fce9eedbdcd06bf8087d4cda9b6fe5a2 --trace
but it eventually failed with
```
>>> [690] <query> SELECT path, id FROM `repository_path` WHERE pathHash IN ('703006a84176af41dc35745c4a58fd2a', '481c149ad01092c9665755b2dbf53c0b', '989e18b7d2c3d0e6bf3c0a9f9d18b9e0', '62fda553150ae50d6fc1c44652c46c1d', 'd974a3f5410856eee9e65a56e5d9e2b1', '8b27dfcb605e927dd3704478e9b5bbdf', '08bf5dc95c1f4c5bc31f5109e0b97e39', '7d09242eb742703c4cb2e4d55a385f39')
<<< [690] <query> 342 us
[2014-10-15 14:53:35] EXCEPTION: (AphrontCharacterSetQueryException) Attempting to construct a query containing characters outside of the Unicode Basic Multilingual Plane. MySQL will silently truncate this data if it is inserted into a `utf8` column. Use the `%B` conversion to escape binary strings data. at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:346]
#0 AphrontBaseMySQLDatabaseConnection::validateUTF8String(string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:10]
#1 AphrontMySQLiDatabaseConnection::escapeUTF8String(string) called at [<phutil>/src/xsprintf/qsprintf.php:170]
#2 xsprintf_query(AphrontMySQLiDatabaseConnection, string, integer, string, integer) called at [<phutil>/src/xsprintf/xsprintf.php:63]
#3 xsprintf(string, AphrontMySQLiDatabaseConnection, array) called at [<phutil>/src/xsprintf/qsprintf.php:64]
#4 qsprintf(AphrontMySQLiDatabaseConnection, string, string, string) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryCommitChangeParserWorker.php:58]
#5 PhabricatorRepositoryCommitChangeParserWorker::lookupOrCreatePaths(array) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryMercurialCommitChangeParserWorker.php:255]
#6 PhabricatorRepositoryMercurialCommitChangeParserWorker::parseCommitChanges(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryCommitChangeParserWorker.php:30]
#7 PhabricatorRepositoryCommitChangeParserWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:44]
#8 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:87]
#9 PhabricatorWorker::executeTask() called at [<phabricator>/scripts/repository/reparse.php:281]
```
Logs in `/var/tmp/phd/log/daemons.log` are filled with same exception.
If this is a problem with repository, would be great to log more information.