[svk-devel] Edit/addition of previous commit logs?

Stig Brautaset stig at brautaset.org
Tue Dec 26 08:54:30 EST 2006


> I have the somewhat weird situation where svk has committed a change
> for me but without a commit log message (re-addition of a file during
> a 'svk up -sm' and resolving conflicts) and consequently the
> pre-commit check of the svn project that I'm trying to smerge back to
> barfs with an error.  What can I do?  Is it possible to go back and
> edit the log message for that change and then run 'svk smerge' again
> and it all to work?  (I expect it to be harder than this).
>
> *Any* help would be greatly appreciated.  I've got lots of commits
> pending (a long time without internet) and don't really want to go
> back and do all that work again (as well as doing a new checkout etc.
> etc.)

I expect this is a problem because you want to smerge iteratively.  
Try smerge iteratively _up to_ the problematic patch[0], merge that  
patch over manually with merge -c and a commit message, then smerge  
iteratively up to HEAD, something like this:

	svk smerge -I //local/foo at rXXX-1 //remote/foo
	svk merge -c XXX //local/foo //remote/foo
	svk smerge -I //local/foo //remote/foo

I hope that helps. Beware of off-by-one errors.

Stig



More information about the svk-devel mailing list