Date: Tue, 13 Oct 2015 10:58:18 +0800 From: RayCherng Yu <raycherng@gmail.com> To: Warren Block <wblock@wonkity.com> Cc: freebsd-translators@freebsd.org Subject: Re: How to submit my leap-second translation (with PO translation)? Message-ID: <CAG2Wu4P94%2B=nniEks_ygdt0%2B1Tri=UhG941%2BRFNS-RGudjWfzg@mail.gmail.com> In-Reply-To: <alpine.BSF.2.20.1510121943450.62072@wonkity.com> References: <CAG2Wu4M81iVo-xVxbCjLf_vhXwx7D-Q_2_pAUBEMq_qbOty75A@mail.gmail.com> <alpine.BSF.2.20.1510121943450.62072@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> 3 =E7=84=A1=E6=B3=95=E9=A1=AF=E7=A4=BA: =E6=AA=94=E6=A1=88=E6=A8=99=E7= =A4=BA=E7=82=BA=E4=BA=8C=E9=80=B2=E5=88=B6=E9=A1=9E=E5=9E=8B. 4 svn:mime-type =3D application/xml 5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D 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 =3D 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=E2=80=A6 You can use this message, or discard it. Do you want to use this message? [Y/n] y >>> [4] <event> diff.willBuildMessage <listeners =3D 0> <<< [4] <event> 164 us >>> [5] <exec> $ vim '/tmp//edit.6m6p13rrwjoko844/new-commit' "/tmp/edit.6m6p13rrwjoko844/new-commit" 18L, 471C =E5=B7=B2=E5=AF=AB=E5=85= =A5 <<< [5] <exec> 8,987,231 us >>> [6] <conduit> differential.parsecommitmessage() <bytes =3D 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 =3D 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 =3D 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.translat= e.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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> 3 =E7=84=A1=E6=B3=95=E9=A1=AF=E7=A4=BA: =E6=AA=94=E6=A1=88=E6=A8=99=E7= =A4=BA=E7=82=BA=E4=BA=8C=E9=80=B2=E5=88=B6=E9=A1=9E=E5=9E=8B. 4 svn:mime-type =3D application/xml 5 Index: zh_TW.UTF-8/articles/leap-seconds/article.translate.xml 6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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@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 ni= ce > 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! > --=20 "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..." =E2=80=94 Warren Buffett.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG2Wu4P94%2B=nniEks_ygdt0%2B1Tri=UhG941%2BRFNS-RGudjWfzg>