[SvnBook] #101: ch05: svnsync section improvements

SvnBook noreply at red-bean.com
Mon Mar 31 22:18:25 CDT 2008


#101: ch05: svnsync section improvements
--------------------------+-------------------------------------------------
  Reporter:  cmpilato     |       Owner:  cmpilato     
      Type:  enhancement  |      Status:  new          
  Priority:  normal       |   Milestone:  1.5          
 Component:  content      |     Version:  nightly/trunk
Resolution:               |    Keywords:               
--------------------------+-------------------------------------------------
Comment (by cmpilato):

 This bit is new in Subversion's notes/svnsync.txt:

 {{{
 Q: Can I mirror a subdirectory of a master repository?

 A: As of Subversion 1.5, it is possible to limit svnsync to a subdirectory
    of the master repository.  This is most useful when the master
 repository
    is organized in projects, and you want to sync only one project.

    Example showing svnsync of project1 in the master repository:

      /project1
        /branches
        /tags
        /trunk
      /project2
        /branches
        /tags
        /trunk

    The following commands will sync all changes in /project1 to the target
    repository:

      $ svnsync init file://`pwd`/dest
 http://svn.example.org/source/repos/project1
      $ svnsync sync file://`pwd`/dest

    Note: this syntax only allows you to limit the scope of svnsync to
    /project1. It does not:

      - allow you to sync two or more projects from the master repository.
      - recognize renames of project1. Example, if the original name of
        project1 was secretproject, only the changes starting from the
 revision
        in which the rename to project1 was committed will be synced.

    If you need any of these abilities right now, you may want to look into
    SVK (http://svk.bestpractical.com/).
 }}}

-- 
Ticket URL: <http://svnbook.red-bean.com/trac/ticket/101#comment:1>
SvnBook <http://svnbook.red-bean.com/>


More information about the svnbook-dev mailing list