http://subversion.tigris.org/issues/show_bug.cgi?id=2986
Issue #|2986
Summary|copy-on-update needs to use loggy
correctly
Component|subversion
Version|trunk
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|libsvn_wc
Assigned to|issues subversion
Reported by|glasser
------- Additional comments from glasser tigris.org Tue Oct 23 17:16:42 -0700 2007 -------
It is potentially possible for a CTRL-C in an update to
leave you with a
silently corrupted and un-cleanup-able wc.
There are two issues with the way that add_file_with_history
uses loggy.
The first is that it uses loggy too much: it explicitly runs
a loggy early to
make a new file appear, but that file is not a file that
should ever exist --
its metadata is incomplete (no svn:entry props) and
it doesn't represent any
actual state of the repository's history. It is being
created early just so
that apply_textdelta has something to morph into the correct
object. If you
interrupts the update right after these logs are run, you
have a silently
corrupted wc.
The second (semi-related) issue is that when we copy over
local mods (definitely
text, not sure if props is a problem too) we do *not* do it
loggily: we just
copy directly into the wc, a big no-no. We need to have
this happen loggily, in
the *same log* as the rest of the operations on the file.
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe subversion.tigris.org
For additional commands, e-mail: issues-help subversion.tigris.org
|