comparison tests/test-mq-qnew.out @ 11513:0c944b7af564 stable

mq: fixed ENOENT when qrename to new/directory.patch MQ patch name can contain slashes, e.g. 'foo/bar.patch'. Currently "qnew foo/bar.patch" works, but "qrename foo/bar.patch new/dir.patch" fails with "No such file or directory". Also added test case for "qnew foo/bar.patch"
author Yuya Nishihara <yuya@tcha.org>
date Sun, 28 Mar 2010 15:23:11 +0900
parents 5faf3566c96d
children a5903e612f07
comparison
equal deleted inserted replaced
11512:488a80c840ac 11513:0c944b7af564
6 abort: "guards" cannot be used as the name of a patch 6 abort: "guards" cannot be used as the name of a patch
7 abort: ".hgignore" cannot be used as the name of a patch 7 abort: ".hgignore" cannot be used as the name of a patch
8 abort: ".mqfoo" cannot be used as the name of a patch 8 abort: ".mqfoo" cannot be used as the name of a patch
9 abort: "foo#bar" cannot be used as the name of a patch 9 abort: "foo#bar" cannot be used as the name of a patch
10 abort: "foo:bar" cannot be used as the name of a patch 10 abort: "foo:bar" cannot be used as the name of a patch
11 % qnew with name containing slash
12 foo/bar.patch
13 popping foo/bar.patch
14 patch queue now empty
11 % qnew with uncommitted changes 15 % qnew with uncommitted changes
12 uncommitted.patch 16 uncommitted.patch
13 % qnew implies add 17 % qnew implies add
14 A .hgignore 18 A .hgignore
15 A series 19 A series
56 abort: "guards" cannot be used as the name of a patch 60 abort: "guards" cannot be used as the name of a patch
57 abort: ".hgignore" cannot be used as the name of a patch 61 abort: ".hgignore" cannot be used as the name of a patch
58 abort: ".mqfoo" cannot be used as the name of a patch 62 abort: ".mqfoo" cannot be used as the name of a patch
59 abort: "foo#bar" cannot be used as the name of a patch 63 abort: "foo#bar" cannot be used as the name of a patch
60 abort: "foo:bar" cannot be used as the name of a patch 64 abort: "foo:bar" cannot be used as the name of a patch
65 % qnew with name containing slash
66 foo/bar.patch
67 popping foo/bar.patch
68 patch queue now empty
61 % qnew with uncommitted changes 69 % qnew with uncommitted changes
62 uncommitted.patch 70 uncommitted.patch
63 % qnew implies add 71 % qnew implies add
64 A .hgignore 72 A .hgignore
65 A series 73 A series