Announcement

Collapse
No announcement yet.

svnadmin: E160013: File not found: transaction

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • svnadmin: E160013: File not found: transaction

    Want to remove corrupt revisions on SVN. Try to dump revisions from 1-5133 after that 5847 to head but when I want to import dump file into the new repo below error appear!

    svnadmin create /svn/newrepo
    svnadmin dump -r1:5132 /svn/oldrepo > /tmp/dumpfile
    svnadmin dump --incremental -r5847:HEAD /svn/oldrepo >> /tmp/dumpfile
    svnadmin load /svn/newrepo < /tmp/dumpfile

    <<< Started new transaction, based on original revision 5850 * editing path : branches/15 ...svnadmin: E160013: File not found: transaction '5134-3ym', path '/branches/15'

    Any recommendation?
    Last edited by indeed_1; 01-08-2020, 06:40 AM.

  • #2
    Sometimes the "--deltas" option helps when using the "--incremental" option.

    However, sometimes the change that you are starting to load from requires that the state of repository contains specific files. In that case you're going to have to manually setup the state of the repository to match those assumptions (e.g. which files exist and where - sometimes exactly what their content is). Which means breaking up the dump/load into 2 pieces and doing some manual operations between them. If you can manage to checkout revision 5846 from the corrupt repo then take the working copy area and copy it into a check out of the loaded repository (before the final load). Then update the partially loaded repository. Then try to do the final load.

    Break a leg!

    Comment


    • #3
      [QUOTE=DougR;n80866]Sometimes the "--deltas" option helps when using the "--incremental" option.

      However, sometimes the change that you are starting to load from requires that the state of repository contains specific files. In that case you're going to have to manually setup the state of the repository to match those assumptions (e.g. which files exist and where - sometimes exactly what their content is). Which means breaking up the dump/load into 2 pieces and doing some manual operations between them. If you can manage to checkout revision 5846 from the corrupt repo then take the working copy area and copy it into a check out of the loaded repository (before the final load). Then update the partially loaded repository. Then try to do the final load.

      Break a leg![/QUOTE]

      Hi
      try to dump into the separate dump file but result same!
      any recommendation?

      Comment


      • #4
        Please read my post above carefully. There are more steps than you appear to have done:

        1. dump up to break.
        2. load dump #1 into empty repo.
        3. create 2 working copies:
        A. checkout of old repo at the revision "just before" your resume point (N-1).
        B. checkout of new repo
        4. copy contents of working area (careful not to copy SVN meta-data) from A to B.
        5. update new repo.
        6. dump from N to end of repo
        7. load dump into new repo

        Not guaranteed to work but "might"?!

        Comment


        • #5
          You mean something like this?

          0- svnadmin create /svn/newrepo
          1- svnadmin dump -r1:5132 /svn/oldrepo > /tmp/dumpfile
          2- svnadmin load /svn/newrepo < /tmp/dumpfile1

          3- mkdir -p /opt/A
          svn up oldrepo 1:5132
          mkdir -p /opt/B
          svn up newrepo

          4-cp -rf /opt/A /opt/B

          5- cd /opt/B
          svn up

          6-svnadmin dump --incremental -r5847:HEAD /svn/oldrepo >> /tmp/dumpfile
          svnadmin load /svn/newrepo < /tmp/dumpfile

          Comment


          • #6
            No. Step 3 and on are incorrect - not what I was suggesting.

            Step 3 is:
            svn checkout URL-of-5847-from-old-repo wc-old
            svn checkout URL-of-new-repo wc-new

            Step 4 needs to be done carefully but is, essentially, skipping ALL SVN meta-data (e.g. ".svn" directory trees)
            removing everything EXCEPT the SVN meta-data from wc-new
            copying everything EXCEPT the SVN meta-data from wc-old into wc-new

            Step 5 is:
            "svn up" from inside wc-new

            Step 6 is:
            svnadmin dump --incremental --deltas -r5848:HEAD /svn/oldrepo | svnadmin load /svn/newrepo

            Comment


            • #7
              in step 3 you told:
              'checkout of old repo at the revision "just before" your resume point (N-1).'
              you mean only export revision 5847 to Head? what's happen for older revision? 1-5132 ?

              Comment


              • #8
                Steps 0,1,2 will load revisions 1-5132 into the new repo before the later steps add to it. Please read the above carefully.

                Comment

                Working...
                X