How to submit my leap-second translation (with PO translation)?
RayCherng Yu
raycherng at gmail.com
Tue Oct 13 02:58:19 UTC 2015
I svn add these four files yesterday and I got this message:
Linting...
No lint engine configured for this project.
Running unit tests...
No unit test engine is configured for this project.
Exception
Diff Parse Exception: Expected hunk target '+++ path/to/file.ext (revision
N)'.
Raw input file was written to: /tmp/bkxzd4yvri8088ks/1356-b958I7
1 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml
2 ===================================================================
>>> 3 無法顯示: 檔案標示為二進制類型.
4 svn:mime-type = application/xml
5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml
6 ===================================================================
7 --- zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (revision 0)
8 +++ zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (working copy)
(Run with `--trace` for a full exception trace.)
Then, I run with --trace
arc diff --trace --create zh_TW.UTF-8/articles/leap-seconds/
libphutil loaded from '/usr/local/lib/php/libphutil/src'.
arcanist loaded from '/usr/local/lib/php/arcanist/src'.
Config: Reading user configuration file "/home/raycherng/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/usr/home/raycherng/doc/.arcconfig".
Working Copy: Path "/usr/home/raycherng/doc" is part of `svn` working copy
"/usr/home/raycherng/doc".
Working Copy: Project root is at "/usr/home/raycherng/doc".
Config: Did not find local configuration at
"/usr/home/raycherng/doc/.svn/arc/config".
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://reviews.freebsd.org/api/user.whoami
<<< [1] <http> 1,333,287 us
<<< [0] <conduit> 1,334,422 us
>>> [2] <exec> $ svn --xml status 'zh_TW.UTF-8/articles/leap-seconds/'
<<< [2] <exec> 566,210 us
>>> [3] <event> diff.didCollectChanges <listeners = 0>
<<< [3] <event> 124 us
You have a saved revision message in '.svn/arc/create-message'.
Message begins:
Traditional Chinese transation of the leap second article to…
You can use this message, or discard it.
Do you want to use this message? [Y/n] y
>>> [4] <event> diff.willBuildMessage <listeners = 0>
<<< [4] <event> 164 us
>>> [5] <exec> $ vim '/tmp//edit.6m6p13rrwjoko844/new-commit'
"/tmp/edit.6m6p13rrwjoko844/new-commit" 18L, 471C 已寫入
<<< [5] <exec> 8,987,231 us
>>> [6] <conduit> differential.parsecommitmessage() <bytes = 437>
>>> [7] <http> https://reviews.freebsd.org/....../differential......
<https://reviews.freebsd.org/api/differential.parsecommitmessage>
<<< [7] <http> 301,569 us
<<< [6] <conduit> 301,843 us
>>> [8] <conduit> user.query() <bytes = 254>
>>> [9] <http> https://reviews.freebsd.org/api/user.query
<<< [9] <http> 306,092 us
<<< [8] <conduit> 306,427 us
>>> [10] <event> diff.didBuildMessage <listeners = 0>
<<< [10] <event> 102 us
Linting...
No lint engine configured for this project.
Running unit tests...
No unit test engine is configured for this project.
>>> [11] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds'
>>> [12] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds'@
>>> [13] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds/Makefile'
>>> [14] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/Makefile'@
>>> [15] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds/article.translate.xml'
>>> [16] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/article.translate.xml'@
>>> [17] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds/article.xml'
>>> [18] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/article.xml'@
<<< [12] <exec> 56,586 us
<<< [14] <exec> 63,302 us
<<< [15] <exec> 49,432 us
<<< [16] <exec> 48,036 us
<<< [17] <exec> 28,424 us
<<< [18] <exec> 15,812 us
>>> [19] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo'
>>> [20] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo'@
>>> [21] <exec> $ svn diff --depth empty --diff-cmd
'/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x
-U32767 'zh_TW.UTF-8/articles/leap-seconds/zh_TW.po'
>>> [22] <exec> $ svn info
'/usr/home/raycherng/doc/zh_TW.UTF-8/articles/leap-seconds/zh_TW.po'@
<<< [19] <exec> 39,179 us
<<< [20] <exec> 46,764 us
<<< [22] <exec> 39,318 us
<<< [21] <exec> 95,647 us
<<< [13] <exec> 187,377 us
<<< [11] <exec> 193,976 us
[2015-10-12 06:45:33] EXCEPTION: (Exception) Diff Parse Exception: Expected
hunk target '+++ path/to/file.ext (revision N)'.
Raw input file was written to: /tmp/4pom455w97ggwwk8/754-vLrVj4
1 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml
2 ===================================================================
>>> 3 無法顯示: 檔案標示為二進制類型.
4 svn:mime-type = application/xml
5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml
6 ===================================================================
7 --- zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (revision 0)
8 +++ zh_TW.UTF-8/articles/leap-seconds/article.translate.xml (working copy)
at [<arcanist>/src/parser/ArcanistDiffParser.php:1221]
arcanist(), phutil()
#0 ArcanistDiffParser::didFailParse(string) called at
[<arcanist>/src/parser/ArcanistDiffParser.php:863]
#1 ArcanistDiffParser::parseHunkTarget() called at
[<arcanist>/src/parser/ArcanistDiffParser.php:799]
#2 ArcanistDiffParser::parseIndexHunk(ArcanistDiffChange) called at
[<arcanist>/src/parser/ArcanistDiffParser.php:321]
#3 ArcanistDiffParser::parseDiff(string) called at
[<arcanist>/src/parser/ArcanistDiffParser.php:88]
#4 ArcanistDiffParser::parseSubversionDiff(ArcanistSubversionAPI, array)
called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:940]
#5 ArcanistDiffWorkflow::generateChanges() called at
[<arcanist>/src/workflow/ArcanistDiffWorkflow.php:497]
#6 ArcanistDiffWorkflow::run() called at
[<arcanist>/scripts/arcanist.php:382]
Another question is which files should I upload/submit ? only the zh_TW.po
and article.xml?
RayCherng
2015-10-13 9:51 GMT+08:00 Warren Block <wblock at wonkity.com>:
> On Mon, 12 Oct 2015, RayCherng Yu wrote:
>
> I have tested the PO translation to translate leap second article to
>> traditoinal Chinese. I upload my translation with arc diff, I got this
>> message:
>>
>>
>> arc diff --create zh_TW.UTF-8/articles/
>>
>> You have untracked files in this working copy.
>>
>> Working copy: /usr/home/raycherng/doc/
>>
>> Untracked changes in working copy:
>> (To ignore these changes, add them to "svn:ignore".)
>> zh_TW.UTF-8/articles/leap-seconds/article.translate.xml
>> zh_TW.UTF-8/articles/leap-seconds/article.xml
>> zh_TW.UTF-8/articles/leap-seconds/zh_TW.mo
>> zh_TW.UTF-8/articles/leap-seconds/zh_TW.po
>>
>> Ignore these untracked files and continue? [y/N] N
>>
>> Usage Exception: User aborted the workflow.
>>
>>
>> How could I upload my translation?
>> thanks
>>
>
> Use 'svn add' to add the PO and translated XML file:
>
> % cd zh_TW.UTF-8/articles/leap-seconds/
> % svn add zh_TW.po
> % svn add article.xml
>
> This assumes that 'svn mkdir' was used to create the leap-seconds
> directory. If not, the directory must be added, too.
>
> Then create a diff of just those two files. For example, with 'svn
> diff'. This example changes to the base doc directory first. That is nice
> because the paths in the diff help the reader see where the files go.
>
> % cd ../../..
> % svn diff zh_TW.UTF-8/articles/leap-seconds/zh_TW.po
> zh_TW.UTF-8/articles/leap-seconds/article.xml > /tmp/zh-leap-seconds.diff
>
> The wiki shows more detail on using the diff tools with more context:
> https://wiki.freebsd.org/CodeReview#Create_a_Revision_via_Web_Interface
>
> Thanks!
>
--
"Life is like a snowball. The important thing is finding wet snow and a
really long hill."
"Price is what you pay. Value is what you get."
"The first rule of Investing is don't lose money; the second rule is don't
forget rule #1..."
"Wall Street is the only place that people ride to work in a Rolls-Royce to
get advice from those who take the subway..."
— Warren Buffett.
More information about the freebsd-translators
mailing list