diff tests/test-mq-qrename @ 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 05a682c8907d
children 4ae3e5dffa60
line wrap: on
line diff
--- a/tests/test-mq-qrename	Fri Jul 02 14:14:30 2010 -1000
+++ b/tests/test-mq-qrename	Sun Mar 28 15:23:11 2010 +0900
@@ -22,6 +22,9 @@
 hg qrename bar/renamed baz
 hg qseries
 ls .hg/patches/baz
+hg qrename baz new/dir
+hg qseries
+ls .hg/patches/new/dir
 cd ..
 
 echo % test patch being renamed before committed