You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Chris Morgan <ch...@gmail.com> on 2005/09/28 14:42:08 UTC
svndumpfilter oddities
Using svn 1.2.0 (I didn't see any changes in the changelog that would
prompt me to move to 1.2.3 and try again, but I can do so)
I dumped a repo with:
svnadmin dump /somerepo > repo.dump
cat repo.dump | svndumpfilter --drop-empty-revs --renumber-revs
/some/path > partial.dump
When I try to load this back I get errors like:
...
------- Committed revision 135 >>>
<<< Started new transaction, based on original revision 136
svnadmin: No such revision 136
...
If I edit the dump file and go to 'Revision-number: 136' I noticed
that inside of this revision there was a 'Node-copyfrom-rev: 136'.
This seemed odd that rev 136 would refer to itself and after looking
at other examples I changed it to 'Node-copyfrom-rev: 135' and
everything seems happy.
I had a couple of questions. First was whether this minor change was
correct. I didn't want to be modifying these files by hand and end up
screwing up the history for the import.
I was also wondering whether this is a new issue with svndumpfilter.
It seems like when renumbering things svndumpfilter shouldn't make a
revision that refers to either itself or a future transaction, only
historical ones.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by Martin Furter <mf...@rola.ch>.
On Wed, 28 Sep 2005, Chris Morgan wrote:
> Even after looking at this document it doesn't seem clear exactly what
> the Node-copyfrom-rev should point to in the case of a directory move.
> Should it point to the last node where modification to the directory
> being moved occurred?
It's a valid revision for the node, a rev where the node exists.
But it should point to the same version of the node. You could find it by
comparing log messages of both dumps.
> How do you go about looking at the dump files from a repo?
> Examination of the dump file prior to filtering and renaming should
> answer the question of what node is pointed to but how do you look at
> a 2+GB file?
You can use "svndumptool.py log -v dumpfile" to see what's in that
dumpfile (http://queen.borg.ch/subversion/svndumptool).
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by Chris Morgan <ch...@gmail.com>.
Even after looking at this document it doesn't seem clear exactly what
the Node-copyfrom-rev should point to in the case of a directory move.
Should it point to the last node where modification to the directory
being moved occurred?
How do you go about looking at the dump files from a repo?
Examination of the dump file prior to filtering and renaming should
answer the question of what node is pointed to but how do you look at
a 2+GB file?
Chris
On 9/28/05, Garrett Rooney <ro...@electricjellyfish.net> wrote:
> On 9/28/05, Chris Morgan <ch...@gmail.com> wrote:
> > I'd love to know more about the format of the dump file so I could
> > figure out whether this was the case. I couldn't find any
> > documentation about it on the subversion site.
>
> Check out http://svn.collab.net/repos/svn/trunk/notes/fs_dumprestore.txt
>
> -garrett
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 9/28/05, Chris Morgan <ch...@gmail.com> wrote:
> I'd love to know more about the format of the dump file so I could
> figure out whether this was the case. I couldn't find any
> documentation about it on the subversion site.
Check out http://svn.collab.net/repos/svn/trunk/notes/fs_dumprestore.txt
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by Chris Morgan <ch...@gmail.com>.
I'd love to know more about the format of the dump file so I could
figure out whether this was the case. I couldn't find any
documentation about it on the subversion site.
If the versions were removed why go back as many versions as were removed?
Chris
On 28 Sep 2005 11:37:01 -0400, C. Michael Pilato <cm...@collab.net> wrote:
> Chris Morgan <ch...@gmail.com> writes:
>
> > Looking at #1911 it does sound just like this bug, "Currently the code
> > does not remap the revised revision for a removed revision to the
> > previous
> > revision,"
> >
> > Given that in rev X it did a copyfrom-rev from X, is it ok for me to
> > change the copyfrom-rev to X - 1?
>
> I don't think that's a safe *general* assumption. Instead, my guess
> is that you need to pay attention to the number of dropped revisions.
> So, if, say, the dumpfilter dropped 4 revisions between 0 and X, you
> would want to patch up your copyfrom-rev to be X-4. But I can't
> substantiate that claim.
>
> --
> C. Michael Pilato <cm...@collab.net>
> CollabNet <> www.collab.net <> Distributed Development On Demand
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by "C. Michael Pilato" <cm...@collab.net>.
Chris Morgan <ch...@gmail.com> writes:
> Looking at #1911 it does sound just like this bug, "Currently the code
> does not remap the revised revision for a removed revision to the
> previous
> revision,"
>
> Given that in rev X it did a copyfrom-rev from X, is it ok for me to
> change the copyfrom-rev to X - 1?
I don't think that's a safe *general* assumption. Instead, my guess
is that you need to pay attention to the number of dropped revisions.
So, if, say, the dumpfilter dropped 4 revisions between 0 and X, you
would want to patch up your copyfrom-rev to be X-4. But I can't
substantiate that claim.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by Chris Morgan <ch...@gmail.com>.
Looking at #1911 it does sound just like this bug, "Currently the code
does not remap the revised revision for a removed revision to the
previous
revision,"
Given that in rev X it did a copyfrom-rev from X, is it ok for me to
change the copyfrom-rev to X - 1?
Chris
On 28 Sep 2005 11:05:31 -0400, C. Michael Pilato <cm...@collab.net> wrote:
> Chris Morgan <ch...@gmail.com> writes:
>
> > I had a couple of questions. First was whether this minor change was
> > correct. I didn't want to be modifying these files by hand and end up
> > screwing up the history for the import.
>
> Without seeing the whole dumpfile, one can't say for sure if the
> change was correct. I believe the amount of shift you need to apply
> to the copyfrom-rev is probably equivalent to the number of prior
> revisions dropped by the filtering process.
>
> > I was also wondering whether this is a new issue with svndumpfilter.
> > It seems like when renumbering things svndumpfilter shouldn't make a
> > revision that refers to either itself or a future transaction, only
> > historical ones.
>
> We don't call these "svndumpfilter oddities", we call 'em bugs. It's
> not a new bug by any stretch -- it's bitten me many times in the past,
> and I think it's issue #1911.
>
> --
> C. Michael Pilato <cm...@collab.net>
> CollabNet <> www.collab.net <> Distributed Development On Demand
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svndumpfilter oddities
Posted by "C. Michael Pilato" <cm...@collab.net>.
Chris Morgan <ch...@gmail.com> writes:
> I had a couple of questions. First was whether this minor change was
> correct. I didn't want to be modifying these files by hand and end up
> screwing up the history for the import.
Without seeing the whole dumpfile, one can't say for sure if the
change was correct. I believe the amount of shift you need to apply
to the copyfrom-rev is probably equivalent to the number of prior
revisions dropped by the filtering process.
> I was also wondering whether this is a new issue with svndumpfilter.
> It seems like when renumbering things svndumpfilter shouldn't make a
> revision that refers to either itself or a future transaction, only
> historical ones.
We don't call these "svndumpfilter oddities", we call 'em bugs. It's
not a new bug by any stretch -- it's bitten me many times in the past,
and I think it's issue #1911.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org