[issue1255] hg qimport -f aborts, but overwrites anyway

Dirkjan Ochtman mercurial-bugs at selenic.com
Thu Aug 7 03:46:26 CDT 2008


New submission from Dirkjan Ochtman <dirkjan at ochtman.nl>:

djc at darwin ~ $ hg init test
djc at darwin ~ $ cd test
djc at darwin test $ echo a > a
djc at darwin test $ hg add a
djc at darwin test $ hg qnew -f test1
djc at darwin test $ echo b > b
djc at darwin test $ hg add b
djc at darwin test $ hg diff
diff --git a/b b/b
new file mode 100644
--- /dev/null
+++ b/b
@@ -0,0 +1,1 @@
+b
djc at darwin test $ hg diff > test1
djc at darwin test $ rm b
djc at darwin test $ hg qimport -f test1
abort: patch test1 is already in the series file
djc at darwin test $ cat .hg/patches/test1
diff --git a/b b/b
new file mode 100644
--- /dev/null
+++ b/b
@@ -0,0 +1,1 @@
+b

So now the patch that was formerly in test1 is lost...

----------
assignedto: djc
messages: 6737
nosy: djc
priority: urgent
status: unread
title: hg qimport -f aborts, but overwrites anyway

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



More information about the Mercurial-devel mailing list