changeset 25393:eb52de500d2a

merge with stable
author Matt Mackall <mpm@selenic.com>
date Mon, 01 Jun 2015 14:47:02 -0500
parents c66d95aa1270 (current diff) ed18f4acf435 (diff)
children 0b6dee81ebb7
files mercurial/templatekw.py tests/test-commit-amend.t tests/test-commit.t
diffstat 4 files changed, 87 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/i18n/ja.po	Fri May 29 15:18:49 2015 -0700
+++ b/i18n/ja.po	Mon Jun 01 14:47:02 2015 -0500
@@ -159,8 +159,8 @@
 msgstr ""
 "Project-Id-Version: Mercurial\n"
 "Report-Msgid-Bugs-To: <mercurial-devel@selenic.com>\n"
-"POT-Creation-Date: 2015-04-29 18:27+0900\n"
-"PO-Revision-Date: 2015-04-29 21:20+0900\n"
+"POT-Creation-Date: 2015-06-01 09:53+0900\n"
+"PO-Revision-Date: 2015-06-01 10:28+0900\n"
 "Last-Translator: Japanese translation team <mercurial-ja@googlegroups.com>\n"
 "Language-Team: Japanese\n"
 "Language: ja\n"
@@ -1390,18 +1390,6 @@
 " * 個人識別情報、あるいはそれに類する個人情報"
 
 msgid ""
-"Censored file revisions are listed in a tracked file called .hgcensored "
-"stored\n"
-"in the repository root. The censor command adds an entry to the .hgcensored "
-"file\n"
-"in the working directory and commits it (much like ``hg tag`` and .hgtags). "
-"The\n"
-"censored file data is then replaced with a pointer to the new commit, "
-"enabling\n"
-"verification."
-msgstr ""
-
-msgid ""
 "Censored nodes can interrupt mercurial's typical operation whenever the "
 "excised\n"
 "data needs to be materialized. Some commands, like ``hg cat``/``hg "
@@ -1410,15 +1398,14 @@
 "and\n"
 "``hg update``, must be capable of tolerating censored data to continue to\n"
 "function in a meaningful way. Such commands only tolerate censored file\n"
-"revisions if they are allowed by the policy specified by the \"censor.allow"
-"\"\n"
-"config option.\n"
+"revisions if they are allowed by the \"censor.policy=ignore\" config "
+"option.\n"
 msgstr ""
 "検閲によって消去されたファイル内容は、 参照することができなくなります。\n"
 ":hg:`cat` や :hg:`revert` 等のコマンドは、 単純に処理が中断されます。\n"
 ":hg:`verify` や :hg:`update` 等の場合、 検閲済みのファイルを無視して、\n"
 "処理を継続することもできます。 検閲済みファイルによる中断を回避するには、\n"
-"``[censor] allow`` 設定を有効にしてください。\n"
+"``[censor] policy=ignore`` を設定してください。\n"
 
 msgid "REV"
 msgstr "リビジョン"
@@ -1457,13 +1444,13 @@
 msgstr "ヘッドリビジョン (%s) の内容は検閲できません"
 
 msgid "clean/delete and commit first"
-msgstr ""
+msgstr "検閲対象データの削除、又は当該ファイルの登録除外のコミットが必要"
 
 msgid "cannot censor working directory"
 msgstr "作業領域の親リビジョンの内容は検閲できません"
 
 msgid "clean/delete/update first"
-msgstr ""
+msgstr "対象データ削除(又は対象ファイル登録除外)済みリビジョンへの更新が必要"
 
 #, python-format
 msgid "censor does not support revlog version %d"
@@ -10687,8 +10674,8 @@
 msgid "record the specified user as committer"
 msgstr "指定ユーザをコミットユーザとして記録"
 
-msgid "display with template (DEPRECATED)"
-msgstr "当該テンプレートで表示をカスタマイズ (非推奨)"
+msgid "display with template (EXPERIMENTAL)"
+msgstr "当該テンプレートで表示をカスタマイズ (実験的実装)"
 
 msgid "STYLE"
 msgstr "スタイル"
@@ -16035,11 +16022,11 @@
 
 #, python-format
 msgid "(did you mean %r?)\n"
-msgstr "(もしかして %r のことですか?)\n"
+msgstr "(推測される候補: %r)\n"
 
 #, python-format
 msgid "(did you mean one of %s?)\n"
-msgstr "(もしかして %s のいずれかのことですか?)\n"
+msgstr "(推測される候補: %s)\n"
 
 msgid "entering debugger - type c to continue starting hg or h for help\n"
 msgstr "デバッガ動作開始 - 継続なら c 、 ヘルプなら h を入力してください\n"
@@ -28006,6 +27993,10 @@
 msgid "date expects one or two arguments"
 msgstr "date の引数は1つまたは2つです"
 
+#. i18n: "date" is a keyword
+msgid "date expects a date information"
+msgstr "date の入力には日付情報を与えてください"
+
 msgid ""
 ":diff([includepattern [, excludepattern]]): Show a diff, optionally\n"
 "    specifying files to include or exclude."
@@ -28167,13 +28158,16 @@
 
 msgid ":word(number, text[, separator]): Return the nth word from a string."
 msgstr ""
-":word(number, text[, separator]): text の冒頭 number 個の単語を抽出します。"
+":word(number, text[, separator]): text の number 個目の単語を抽出します。"
 
 #. i18n: "word" is a keyword
 #, python-format
 msgid "word expects two or three arguments, got %d"
 msgstr "word は2または3の引数が必要です (実際の引数は %d 個)"
 
+msgid "Use strings like '3' for numbers passed to word function"
+msgstr "word 関数には '3' のような文字列形式で数値を指定してください"
+
 msgid "unmatched quotes"
 msgstr "引用符の対応関係が不正です"
 
--- a/mercurial/templatekw.py	Fri May 29 15:18:49 2015 -0700
+++ b/mercurial/templatekw.py	Mon Jun 01 14:47:02 2015 -0500
@@ -111,7 +111,7 @@
 
 def getfiles(repo, ctx, revcache):
     if 'files' not in revcache:
-        revcache['files'] = repo.status(ctx.p1().node(), ctx.node())[:3]
+        revcache['files'] = repo.status(ctx.p1(), ctx)[:3]
     return revcache['files']
 
 def getlatesttags(repo, ctx, cache):
--- a/tests/test-commit-amend.t	Fri May 29 15:18:49 2015 -0700
+++ b/tests/test-commit-amend.t	Mon Jun 01 14:47:02 2015 -0500
@@ -999,6 +999,37 @@
   HG: @@ -0,0 +1,1 @@
   HG: +y
 
+  $ echo cccc >> cc
+  $ hg status -amr
+  M cc
+  $ HGEDITOR=cat hg commit --amend -e -m "cc should be excluded" -X cc
+  cc should be excluded
+  
+  HG: M: 
+  HG: A: foo y
+  HG: R: a x
+  HG: diff -r 6de0c1bde1c8 a
+  HG: --- a/a	Thu Jan 01 00:00:00 1970 +0000
+  HG: +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  HG: @@ -1,2 +0,0 @@
+  HG: -a
+  HG: -a
+  HG: diff -r 6de0c1bde1c8 foo
+  HG: --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  HG: +++ b/foo	Thu Jan 01 00:00:00 1970 +0000
+  HG: @@ -0,0 +1,1 @@
+  HG: +foo
+  HG: diff -r 6de0c1bde1c8 x
+  HG: --- a/x	Thu Jan 01 00:00:00 1970 +0000
+  HG: +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  HG: @@ -1,1 +0,0 @@
+  HG: -x
+  HG: diff -r 6de0c1bde1c8 y
+  HG: --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  HG: +++ b/y	Thu Jan 01 00:00:00 1970 +0000
+  HG: @@ -0,0 +1,1 @@
+  HG: +y
+
 Check for issue4405
 -------------------
 
--- a/tests/test-commit.t	Fri May 29 15:18:49 2015 -0700
+++ b/tests/test-commit.t	Mon Jun 01 14:47:02 2015 -0500
@@ -441,10 +441,16 @@
   $ cat >> .hg/hgrc <<EOF
   > [committemplate]
   > changeset = {desc}
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}
   >     HG:
   >     {splitlines(diff()) % 'HG: {line}\n'
   >    }HG:
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}\n
   > EOF
   $ hg status -amr
@@ -453,6 +459,9 @@
   R removed
   $ HGEDITOR=cat hg commit -q -e -m "foo bar" changed
   foo bar
+  HG: mods=changed
+  HG: adds=
+  HG: dels=
   HG: files=changed
   HG:
   HG: --- a/changed	Thu Jan 01 00:00:00 1970 +0000
@@ -461,6 +470,9 @@
   HG:  changed
   HG: +changed
   HG:
+  HG: mods=changed
+  HG: adds=
+  HG: dels=
   HG: files=changed
   $ hg status -amr
   A added
@@ -474,25 +486,43 @@
   $ cat >> .hg/hgrc <<EOF
   > [committemplate]
   > changeset = {desc}
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}
   >     HG:
   >     {splitlines(diff("changed")) % 'HG: {line}\n'
   >    }HG:
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}
   >     HG:
   >     {splitlines(diff("added")) % 'HG: {line}\n'
   >    }HG:
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}
   >     HG:
   >     {splitlines(diff("removed")) % 'HG: {line}\n'
   >    }HG:
+  >     HG: mods={file_mods}
+  >     HG: adds={file_adds}
+  >     HG: dels={file_dels}
   >     HG: files={files}\n
   > EOF
   $ HGEDITOR=cat hg commit -q -e -m "foo bar" added removed
   foo bar
+  HG: mods=
+  HG: adds=added
+  HG: dels=removed
   HG: files=added removed
   HG:
   HG:
+  HG: mods=
+  HG: adds=added
+  HG: dels=removed
   HG: files=added removed
   HG:
   HG: --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -500,6 +530,9 @@
   HG: @@ -0,0 +1,1 @@
   HG: +added
   HG:
+  HG: mods=
+  HG: adds=added
+  HG: dels=removed
   HG: files=added removed
   HG:
   HG: --- a/removed	Thu Jan 01 00:00:00 1970 +0000
@@ -507,6 +540,9 @@
   HG: @@ -1,1 +0,0 @@
   HG: -removed
   HG:
+  HG: mods=
+  HG: adds=added
+  HG: dels=removed
   HG: files=added removed
   $ hg status -amr
   M changed