You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cedric Williams <Ce...@tceq.state.tx.us> on 2003/07/24 21:01:50 UTC
How to backup a running script? and how to recover out-of-sync
file?
Howdy folks,
I've got two questions, linked together.
1 - Can a shell script be committed to a repository while it's being run? (I'm guessing no, but figured I should ask first, since this is what I was trying to do)
2 - Once I've tried (and failed at) this, how do I recover from it? I'd like to do this gracefully rather than just blow out all the .svn files that refer to the script... Or is that the proper way to recover this? The docs cover repository repairs (a little), but I can't find anything about a corrupt wc other than "svn cleanup", which doesn't do anything here.
Here's what happens when I try to work on it - I'm using zsh 3.0.5-nt-beta-0.75 under win2k, svn 0.25.0, local repository (client-accessed, no server)
# Check the status
D:\Working\03wc\hacks>svn st
M daily.sh
# Try to commit
D:\Working\03wc\hacks>svn ci -m "Special update"
Sending hacks\daily.sh
Transmitting file data .svn: Working copy text base is corrupt
svn: Commit failed (details follow):
svn: svn_wc_transmit_text_deltas: checksum mismatch for 'D:/Working/03wc/hacks/.
svn/text-base/daily.sh.svn-base':
recorded checksum: 638e8f922d584cefa74af0df1e280bef
actual checksum (hex): e568839b38acb9eb149fb332aeabf312
actual checksum (base64): 5WiDmzisuesUn7MyrqvzEg==
# Try to fix...
D:\Working\03wc\hacks>svn cleanup
D:\Working\03wc\hacks>svn st
M daily.sh
# Can't commit this either...
# Revert to a prior version
D:\Working\03wc\hacks>svn revert daily.sh
Reverted daily.sh
D:\Working\03wc\hacks>svn st --verbose --show-updates
79 75 cedwilli daily.sh
# Make a change, try again
D:\Working\03wc\hacks>svn st
M daily.sh
D:\Working\03wc\hacks>svn ci -m "Special update"
Sending hacks\daily.sh
Transmitting file data .svn: Working copy text base is corrupt
svn: Commit failed (details follow):
svn: svn_wc_transmit_text_deltas: checksum mismatch for 'D:/Working/03wc/hacks/.
svn/text-base/daily.sh.svn-base':
recorded checksum: 638e8f922d584cefa74af0df1e280bef
actual checksum (hex): e568839b38acb9eb149fb332aeabf312
actual checksum (base64): 5WiDmzisuesUn7MyrqvzEg==
TIA,
--Cedric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to backup a running script? and how to recover
out-of-sync file?
Posted by Jack Repenning <jr...@collab.net>.
At 4:01 PM -0500 7/24/03, Cedric Williams wrote:
>Howdy folks,
> I've got two questions, linked together.
>1 - Can a shell script be committed to a repository while it's being
>run? (I'm guessing no, but figured I should ask first, since this is
>what I was trying to do)
Hmmm ... I do this all the time, and I don't see any reason it should
fail--nor do I see any way some such failure could cause the
particular error you report. You run the script itself. The text
base is another file entirely, inside the .svn directory. The
message says that the _text_base_ is wrong, and your shell doesn't
even know that file is there.
You said you were trying to commit while the script is actually
running, but this looks like hand-typed commands (for example,
there's a comment "make a change", but nothing showing that actually
happening; also, I see shell prompts, like "D:\Working\03wc\hacks>",
but I've never seen a shell do that during script execution, only the
Windows command executioner). Can you provide a complete transcript
of the failure actually happening?
--
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org