changeset 11514:4a73a0980194

Merge with stable
author Martin Geisler <mg@lazybytes.net>
date Tue, 06 Jul 2010 20:43:19 +0200
parents 96040c70c9e1 (current diff) 0c944b7af564 (diff)
children 8bbe396883db
files
diffstat 7 files changed, 24 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/mercurial.spec	Sun Jul 04 14:14:40 2010 +0200
+++ b/contrib/mercurial.spec	Tue Jul 06 20:43:19 2010 +0200
@@ -17,7 +17,7 @@
 # python-devel provides an adequate python-dev.  The merge tool is a
 # run-time dependency.
 #
-BuildRequires: python >= 2.4, python-devel, make, gcc, docutils >= 0.5
+BuildRequires: python >= 2.4, python-devel, make, gcc, python-docutils >= 0.5
 Provides: hg = %{version}-%{release}
 Requires: python >= 2.4
 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
--- a/hgext/mq.py	Sun Jul 04 14:14:40 2010 +0200
+++ b/hgext/mq.py	Tue Jul 06 20:43:19 2010 +0200
@@ -2311,6 +2311,9 @@
         q.applied[info[0]] = statusentry(info[1], name)
     q.applied_dirty = 1
 
+    destdir = os.path.dirname(absdest)
+    if not os.path.isdir(destdir):
+        os.makedirs(destdir)
     util.rename(q.join(patch), absdest)
     r = q.qrepo()
     if r:
--- a/mercurial/help/glossary.txt	Sun Jul 04 14:14:40 2010 +0200
+++ b/mercurial/help/glossary.txt	Tue Jul 06 20:43:19 2010 +0200
@@ -185,7 +185,7 @@
     Mercurial, that will be recorded in the next commit. The working
     directory initially corresponds to the snapshot at an existing
     changeset, known as the parent of the working directory. See
-    'Parents, working directory'. The state may be modified by changes
+    'Parent, working directory'. The state may be modified by changes
     to the files introduced manually or by a merge. The repository
     metadata exists in the .hg directory inside the working directory.
 
--- a/tests/test-mq-qnew	Sun Jul 04 14:14:40 2010 +0200
+++ b/tests/test-mq-qnew	Tue Jul 06 20:43:19 2010 +0200
@@ -25,6 +25,12 @@
 
     hg qinit -c
 
+    echo '% qnew with name containing slash'
+    hg qnew foo/bar.patch
+    hg qseries
+    hg qpop
+    hg qdelete foo/bar.patch
+
     echo '% qnew with uncommitted changes'
     echo a > somefile
     hg add somefile
--- a/tests/test-mq-qnew.out	Sun Jul 04 14:14:40 2010 +0200
+++ b/tests/test-mq-qnew.out	Tue Jul 06 20:43:19 2010 +0200
@@ -8,6 +8,10 @@
 abort: ".mqfoo" cannot be used as the name of a patch
 abort: "foo#bar" cannot be used as the name of a patch
 abort: "foo:bar" cannot be used as the name of a patch
+% qnew with name containing slash
+foo/bar.patch
+popping foo/bar.patch
+patch queue now empty
 % qnew with uncommitted changes
 uncommitted.patch
 % qnew implies add
@@ -58,6 +62,10 @@
 abort: ".mqfoo" cannot be used as the name of a patch
 abort: "foo#bar" cannot be used as the name of a patch
 abort: "foo:bar" cannot be used as the name of a patch
+% qnew with name containing slash
+foo/bar.patch
+popping foo/bar.patch
+patch queue now empty
 % qnew with uncommitted changes
 uncommitted.patch
 % qnew implies add
--- a/tests/test-mq-qrename	Sun Jul 04 14:14:40 2010 +0200
+++ b/tests/test-mq-qrename	Tue Jul 06 20:43:19 2010 +0200
@@ -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
--- a/tests/test-mq-qrename.out	Sun Jul 04 14:14:40 2010 +0200
+++ b/tests/test-mq-qrename.out	Tue Jul 06 20:43:19 2010 +0200
@@ -5,4 +5,6 @@
 renamed
 baz
 .hg/patches/baz
+new/dir
+.hg/patches/new/dir
 % test patch being renamed before committed