3 replies
I have source: local directory tree and remote SVN repository.
Some files in source tree could get deleted, some new added, some updated, some remain the same.

Is there a single command that will force SVN repository to sync with source in this fashion:
- whatever 'disappeared" from source tree - must be deleted from remote
- whatever added to source - must be added to remote
- whatever updated at source must be updated.
?

Gleb
#question #svn
  • Profile picture of the author zerofill
    thought svnsync did all that in one shot? The mirrors should be clones of the source after running it.

    EDIT: could be wrong though been a few years since I used SVN for much...I'm a lazy lazy coder anymore...
    Signature
    Serp Shaker
    The IM World Will Be Shaken to the Core!
    Join my list at: IMCool.Biz
    New Podcast --> podcast.imcool.biz
    {{ DiscussionBoard.errors[905779].message }}
  • Profile picture of the author AaronMaxwell
    Originally Posted by MemberWing View Post

    I have source: local directory tree and remote SVN repository.
    Some files in source tree could get deleted, some new added, some updated, some remain the same.

    Is there a single command that will force SVN repository to sync with source in this fashion:
    - whatever 'disappeared" from source tree - must be deleted from remote
    - whatever added to source - must be added to remote
    - whatever updated at source must be updated.
    ?

    Gleb
    Are you talking about having a checkout of the sources locally? Not multiple repositories, which mirror a primary one, right (which is a very advanced, wizards-only technique).

    As far as I know there is not a single command that does this. You would need to do "svn remove" to signal the files are to be removed, then "svn add" to designate the new files. THEN, a single "svn commit" command will do what you outline above.

    (I'm using the command-line versions of the subversion commands here, but they should be easily to translate to whatever client you're using.)
    {{ DiscussionBoard.errors[919364].message }}
  • Profile picture of the author MemberWing
    Yes, the problem with that is that I have to remember what was added, what was removed, and do appropriate commands.
    I just want to do simple duplicate of source tree + subtrees -> target (SVN).
    {{ DiscussionBoard.errors[919555].message }}

Trending Topics