Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#299 unversioned file present in SVN: golf_ball.pix

closed-works-for-me
Sean Morrison
3
2011-07-26
2011-07-25
R P Herrold
No

I thought I had filed this, but cannot fine the bug. I am still getting this warning today with a fresh pull

[herrold@centos-5 brlcad]$ time ./README -p
U brlcad/brlcad/trunk/src/adrt/load.c
...
A brlcad/brlcad/trunk/src/rt/scanline.h
svn: Failed to add file 'brlcad/brlcad/tags/rel-7-16-10/pix/golf_ball.pix': an unversioned file of the same name already exists

and assumedly it needs to be placed under version control to quell this error warning

-- Russ herrold

Discussion

  • Sean Morrison
    Sean Morrison
    2011-07-25

    • assigned_to: nobody --> brlcad
    • priority: 5 --> 4
    • status: open --> pending-works-for-me
     
  • Sean Morrison
    Sean Morrison
    2011-07-25

    At a glance, it looks like you're trying to check out the entire repository root? That's not recommended since that will obtain every tagged and branched version and be an order of magnitude more disk space used than what most people want or expect.

    Assuming you do have some reason for checking out the whole root, or regardless, that error is saying that there's a golf_ball.pix file "in the way" so it cannot perform the checkout. I've seen that issue before if svn is aborted (or crashes) during a checkout leaving the checkout book-keeping in an error state.

    The solution is usually do delete the offending parent directory (i.e., rm -rf brlcad/brlcad/tags/rel-7-16-10/pix and continue with the checkout).

    The other way that issue can happen is if the checkout is going to a case-preserving (but case-insensitive) file system, but that seems unlikely given you're using centos.

    More to the point, the checkout of rel-7-16-10 definitely works for me, so it's probably just a stale/corrupt partial checkout on your end.

     
  • R P Herrold
    R P Herrold
    2011-07-25

    > At a glance, it looks like you're trying to check out the entire repository
    > root? That's not recommended

    too late -- I followed the instructions at
    https://sourceforge.net/scm/?type=svn&group_id=105292
    (far right side), which state:

    Subversion Access

    This project's SourceForge.net Subversion repository can be checked out through SVN with the following instruction set:
    svn co https://brlcad.svn.sourceforge.net/svnroot/brlcad brlcad
    Warning
    This is a generic Subversion checkout command which will pull all modules, tags and/or branches of the project. Please refer to project home page for specific SVN instructions, or use "Browse Repository" link; in most cases, you will want to add '/trunk' to the HTTPS URL above to check out only trunk (main development line).

    Information about accessing this Subversion repository may be found in our document titled "Subversion (Version Control for Source Code)".

    ========================== quote ends ============================

    You are right that it is big, but I assumed someone wanted it that way ;)

    [herrold@nfs brlcad]$ du | sort -n | tail
    539948 ./brlcad/brlcad/branches/cmake
    2279524 ./brlcad/geomcore/tags
    2382368 ./brlcad/geomcore
    2947212 ./brlcad/rt^3/tags
    3166988 ./brlcad/rt^3
    3209052 ./brlcad/brlcad/branches
    4657300 ./brlcad/brlcad/tags
    8398228 ./brlcad/brlcad
    13962248 ./brlcad
    14050904 .
    [herrold@nfs brlcad]$

    If you need a separate bug as to website maintenance, please let me know and I will file such

    -----------------------

    To your proposed solution:

    thanks -- I will try it and advise if it persists

    I have a build going atm, and need for it to finish before I can test it

    -- Russ herrold

     
  • R P Herrold
    R P Herrold
    2011-07-25

    • status: pending-works-for-me --> open-works-for-me
     
  • R P Herrold
    R P Herrold
    2011-07-25

    ... adding:

    # bug 3377310
    [ -e ./brlcad/brlcad/tags/rel-7-16-10/pix/golf_ball.pix ] && \ rm -f ./brlcad/brlcad/tags/rel-7-16-10/pix/golf_ball.pix

    and testing

     
  • R P Herrold
    R P Herrold
    2011-07-25

    no joy -- deleting that file before the SVN update, I get the issue again

    U brlcad/brlcad/trunk/include/fb.h
    ...
    U brlcad/brlcad/trunk/src/util/bwrot.c
    A brlcad/brlcad/tags/rel-7-16-10/pix/golf_ball.pix
    svn: Failed to add file 'brlcad/brlcad/tags/rel-7-16-10/pix/moss.pix': an unversioned file of the same name already exists

    ==============

    are you SURE it works at your end?

    -- Russ herrold

     
  • R P Herrold
    R P Herrold
    2011-07-25

    actually I mis-read what you wanted -- I will: rm -rf the directory in the next pass

     
  • Sean Morrison
    Sean Morrison
    2011-07-25

    • priority: 4 --> 3
    • status: open-works-for-me --> closed-works-for-me
     
  • Sean Morrison
    Sean Morrison
    2011-07-25

    You're following them but not heeding the warning... :)

    That bright yellow box following the checkout line warns you. It notes that those are just generic instructions ... that it will pull "everything" in the entire repository including all modules, tags, and branches ... and that you probably just want trunk. The repository is that big, but that's definitely not what you want.

    To checkout the BRL-CAD trunk, the command is this:

    svn checkout https://brlcad.svn.sourceforge.net/svnroot/brlcad/brlcad/trunk brlcad

    The generic instructions aren't wrong, they're just not what you're wanting or needing. We have more detailed instructions on our website here:

    http://brlcad.org/wiki/Building_from_SVN

    Also, there is documentation in the download itself in the README* and INSTALL* files.

     
  • R P Herrold
    R P Herrold
    2011-07-25

    • priority: 3 --> 4
    • status: closed-works-for-me --> open-works-for-me
     
  • R P Herrold
    R P Herrold
    2011-07-25

    test amended to:

    # bug 3377310 -- only fires when debugging is on
    [ -e ./brlcad/brlcad/tags/rel-7-16-10/pix/golf_ball.pix -a \ "x${DEBUG}" != "x" ] && \ rm -rf ./brlcad/brlcad/tags/rel-7-16-10/pix
    #

     
  • Sean Morrison
    Sean Morrison
    2011-07-25

    unclear what your test refers to or fixes -- you definitely shouldn't need to accommodate anything related to golf_ball.pix in a script of any sort. It was a fluke, probably due to an interrupted checkout that could occur with any file in the repository.

    If you started a checkout over from scratch, even of the entire repository, you won't encounter that same issue. Moreover, there's no reason to perform a checkout on the entire repo (many many GB and several hours vs. 500MB and just a few minutes).

     
  • Sean Morrison
    Sean Morrison
    2011-07-25

    • priority: 4 --> 3
    • status: open-works-for-me --> closed-works-for-me
     
  • R P Herrold
    R P Herrold
    2011-07-26

    • priority: 3 --> 4
     
  • R P Herrold
    R P Herrold
    2011-07-26

    Seems to not produce the error after the rm -rf of the affected parent directory -- seems to be some weird SVN bug ;)

    Thank you

     
  • Sean Morrison
    Sean Morrison
    2011-07-26

    • priority: 4 --> 3