[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Warning during a incremental dump

From: Tim Moloney <moloney_at_mrsl.com>
Date: 2003-08-29 20:16:55 CEST

cmpilato@collab.net wrote:

> It's warning you (in a highly unhelpful fashion) that something in
> revision 21 was a copy of something in revision 20, and since you
> started your dump at revision 21, loading that dumpfile into an empty
> repository will fail because it will try to perform a copy of
> something that doesn't exist.

Make sense. Thanks for the excellent explanation.

> Yep. I betcha that if you look at the dump record for that addition,
> it has:
>
> Node-action: add
> Copyfrom-path: branches/rawson/calc_sdw_stats.c
> Copyfrom-revision: 20

Wow, you're good. I have

Node-path: trunk/calc_sdw_stats.c
Node-kind: file
Node-action: add
Node-copyfrom-rev: 20
Node-copyfrom-path: branches/rawson/calc_sdw_stats.c

> I think (but am not sure) that the reason your error message shows
> revision 0 is because 'svnadmin load' does revision renumbering such
> that if your repository is at revision X and you dumpfile starts with
> a dump of revision Y, copyfrom revisions (Y - C) are translated to
> copies from (X - C) at load time. Since your dumpfile started at 21,
> and your next repository revision would have been 1, then a copyfrom
> revision of 20 mapped to a copy from revision 0 -- hence the failure.

Enother excellent explanation.

> And, ultimately, hence the warning at dumptime, though it really
> should be more clear. I think I might have accidentally broken that
> when I (long ago) did a query-replace of copyfrom_rev to cmp_rev
> ... I might have gotten that printf() unintentionally.

For my purposes, the incremental backups will always be used together
to reconstruct the entire repository, so this is not a problem for me.

However, if I ever want to create a dump of just a branch (or any copy)
specifically for loading into a new repository, I need to include the
source revision of the copy. It's kinda obvious when it's said this
way but I'm sure I would have had problems if we didn't have this
discussion.

Thanks again. =)

-- 
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road                             \     /
Sarasota, FL  34232                     .________\(O)/________.
(941) 377-6775 x208                        '  '  O(.)O  '  '
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 1 00:31:29 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.