[darcs-devel] [issue674] solve the ChangeLog problem
Eric Kow
bugs at darcs.net
Thu Sep 23 16:51:22 UTC 2010
Eric Kow <kowey at darcs.net> added the comment:
Ganesh explained the ChangeLog problem at
http://irclog.perlgeek.de/darcs/2010-09-19#i_2842608 (stop at 13:01)
Why does "lines after x" depend on "line x"? Let's simplify this to be
both one-liners on an empty file.
It's useful to understand that hunks in the current Darcs are associated
with line numbers. So the hunk patches here would be "+line x" on line 1
and "+line after x" on line 2.
If we were to allow them to commute, it would be possible to have two
parallel repositories, with "+line x" and "+line after x", both of which
on line 1 (!). The fact that these patches would both touch line 1
means we'll have introduced an ambiguity. Which one goes first? You
could get alternatively
line x
line after x
or
line after x
line x
Hope I've got that right!
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue674>
__________________________________
More information about the darcs-devel
mailing list