[issue767] hg qref looses binary files without warning

stamfest mercurial-bugs at selenic.com
Sat Oct 6 07:20:03 UTC 2007


New submission from stamfest <peter at stamfest.at>:

$ hg --version | head -1
Mercurial Distributed SCM (version 0.9.4)
$  hg init repo ; cd repo
$  hg qinit 
$  hg qnew p
$  # put in binary data
$  echo -e "\0binary" > binary
$  # put in text data
$  echo hi > text
$  hg add
adding binary
adding text
$  hg st
A binary
A text
$  ls -l
total 8
-rw-rw-r-- 1 peter peter 8 Oct  6 08:50 binary
-rw-rw-r-- 1 peter peter 3 Oct  6 08:50 text
# so far, so good
$  hg qref
$  hg st
$  cat .hg/patches/p
binary file test

diff -r 000000000000 binary
Binary file binary has changed
diff -r 000000000000 foo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/foo       Sat Oct 06 09:11:18 2007 +0200
@@ -0,0 +1,1 @@
+test
### WTF?? With this patch, the following is clear:
$  hg qpop
Patch queue now empty
$  hg qpush
applying p
Now at: p
$  ls -l
total 4
-rw-rw-r-- 1 peter peter 3 Oct  6 08:50 text
# mq has lost "binary" without any warning.

----------
messages: 4081
nosy: stamfest
priority: bug
status: unread
title: hg qref looses binary files without warning
topic: mq

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




More information about the Mercurial-devel mailing list