Results 1 to 5 of 5

Thread: how to embed banches in svn?

  1. #1

    how to embed banches in svn?

    hello

    I have a work SVN repository that has history for 1 year. All data is in root folder.
    /project data

    I understand that svn proper structure must look like
    /trunk/project data
    /branches
    /tags

    Question is, how can I move project data to trunk folder without loosing history for files? I mean it must be without "copy".


    regards

  2. #2
    Quote Originally Posted by ykorotia View Post
    I have a work SVN repository that has history for 1 year. All data is in root folder.
    /project data

    I understand that svn proper structure must look like
    /trunk/project data
    /branches
    /tags
    It's not required, it's just a convention used for organizational purposes.

    Quote Originally Posted by ykorotia View Post
    Question is, how can I move project data to trunk folder without loosing history for files? I mean it must be without "copy"
    Why "without copy"? Copying preserves history; all Subversion client operations (when done properly) do. To reorganize your repository:
    • svn mkdir URL_TO_ROOT/trunk
    • svn mkdir URL_TO_ROOT/branches
    • svn mkdir URL_TO_ROOT/tags
    • svn mv URL_TO/project data URL_TO/trunk


    To make things easy, do this all with URLs so it's done right in the repository, then check out a fresh WC from trunk.
    I am neither an employee nor customer of WANDisco.

  3. #3
    1.jpg
    2.jpg
    Did as you said, but with explorer shell.
    My bad if I don't understand it properly. I would like to see changes "a,b,c" in trunk. As on images they are gone.

    regards
    Last edited by ykorotia; 04-04-2012 at 02:18 AM.

  4. #4
    anyone can help here?

    When I do this

    Code:
    PS C:\Users\ykorotia> svn move -m "move" file:///D:/Users/ykorotia/Desktop/repo/123.txt file:///D:/Users/ykorotia/Deskto
    p/repo/project1/trunk/123.txt --parents
    I get history intact for file 123.txt in newly created directory, but I cannot see HISTORY LIST for folder


    tried to move all project to trunk, got this

    Code:
    PS C:\Users\ykorotia> svn move -m "move" file:///D:/Users/ykorotia/Desktop/repo/ file:///D:/Users/ykorotia/Desktop/repo/
    project1/trunk/
    svn: E235000: In file 'D:\Development\SVN\Releases\TortoiseSVN-1.7.6\ext\subversion\subversion\libsvn_client\copy.c' lin
    e 591: assertion failed (! svn_path_is_empty(path))
    PS C:\Users\ykorotia>
    and svn fails with exception


    tried to move particular directory only:

    Code:
    PS C:\Users\ykorotia> svn move -m "move" file:///D:/Users/ykorotia/Desktop/repo/dir1 file:///D:/Users/ykorotia/Desktop/r
    epo/project1/trunk2/ --parents
    
    Committed revision 8.
    PS C:\Users\ykorotia>
    so, it looks like I achieved what I wanted on directory level. BUT how can I transfer all files from repository root as a folder then? So all history list will be visible in new directory

  5. #5
    It looks like I get it, at last.

    I've used these commands on test repositories

    D:\Users\ykorotia\Desktop>svnadmin.exe dump D:\Users\ykorotia\Desktop\repo > dump
    D:\Users\ykorotia\Desktop>svnadmin.exe load D:\Users\ykorotia\Desktop\repo2 --parent-dir trunk < dump

    while before it I had to setup hook pre-revprop-change with "exit 0" for repo2 (destination) / just create file pre-revprop-change.bat for windows



    last test and going for production..

    maybe it will be usefull for someone

    regards,
    Yurii

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •