[issue803] mq loses changes when creating patches with inexistant files

Patrick Mézard mercurial-bugs at selenic.com
Mon Oct 29 16:09:44 UTC 2007


New submission from Patrick Mézard <pmezard at gmail.com>:

Creating a patch referencing an non-existing file seems to capture working
directory changes but lose them afterwards.

$ hg init
$ echo a > a
$ hg add a
$ hg st
A a
$ hg qnew test b
b: No such file or directory
$ hg st
$ hg export tip
# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1193673860 -3600
# Node ID 68b90e87b65f9b2a7ee53f09d0c3a3411e299398
# Parent  0000000000000000000000000000000000000000
[mq]: test

diff --git a/a b/a
new file mode 100644
--- /dev/null
+++ b/a
@@ -0,0 +1,1 @@
+a
$ hg qpop
Patch queue now empty
$ hg st
$ cat .hg/patches/test
$ hg qpush
applying test
Now at: test
$ hg export tip
# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1193673887 -3600
# Node ID 24c1d475a82711ac12bb9a9c8957cbbacab50abc
# Parent  0000000000000000000000000000000000000000
imported patch test

----------
messages: 4215
nosy: pmezard
priority: bug
status: unread
title: mq loses changes when creating patches with inexistant files
topic: mq

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue803>
____________________________________________________




More information about the Mercurial-devel mailing list