darcs

Issue 2067 darcs diff outputs blank lines when nonexistent files are given as input

Title darcs diff outputs blank lines when nonexistent files are given as input
Priority bug Status resolved
Milestone Resolved in 2.8.0
Superseder Nosy List david, galbolle
Assigned To galbolle
Topics

Created on 2011-04-19.00:06:15 by david, last changed 2011-12-28.22:11:59 by noreply.

Messages
msg13940 (view) Author: david Date: 2011-04-19.00:06:13
$ darcs init
$ darcs diff | od -c
$ darcs diff x | od -c
diff: old-eat/x: No such file or directory
diff: new-eat/x: No such file or directory
$ # putting stderr to null for the rest for brevity
$ darcs diff x y 2> /dev/null | od -c
0000000   \n                                                            
0000001
$ darcs diff x y z 2> /dev/null | od -c
0000000   \n  \n                                                        
0000002
$ darcs diff x y z p 2> /dev/null | od -c
0000000   \n  \n  \n                                                    
0000003
$ darcs diff x y z p d 2> /dev/null | od -c
0000000   \n  \n  \n  \n                                                
0000004
$ darcs diff x y z p d q 2> /dev/null | od -c
0000000   \n  \n  \n  \n  \n                                            
0000005

This is causing problems with a script I have that does "darcs diff -u
$files" and then tries to use the output as input for "patch". Patch
doesn't mind empty files but it doesn't like files that have a non-zero
length but no actual patch.
msg14793 (view) Author: markstos Date: 2011-10-27.21:25:44
This issue is claimed to be resolved by this patch:

"Resolve issue2067: inexsitant files result in empty lines in darcs"
msg14882 (view) Author: noreply Date: 2011-12-28.22:11:58
The following patch sent by Florent Becker <florent.becker@ens-lyon.org> updated issue issue2067 with
status=resolved;resolvedin=2.8.0 HEAD

* Resolve issue2067: inexsitant files result in empty lines in darcs 
Ignore-this: 955ca17ff9d2bd51b36934de76f51d70
History
Date User Action Args
2011-04-19 00:06:15davidcreate
2011-05-09 14:32:56galbollesetassignedto: galbolle
nosy: + galbolle
2011-10-27 21:25:44markstossetmessages: + msg14793
resolvedin: 2.8.0
2011-10-27 21:28:32markstossetstatus: unknown -> resolved
2011-12-28 22:11:59noreplysetmessages: + msg14882