technoweenie / duplikate

Syncs one directory to another (example: a git project to an svn repo)

This URL has Read+Write access

name age message
file .gitignore Fri Jan 25 14:34:46 -0800 2008 actually copy files... [technoweenie]
file CHANGES Sun Apr 06 08:11:54 -0700 2008 add Duplikate#ignore [osteele]
file README Sat Apr 05 19:17:30 -0700 2008 add report, dry_run [osteele]
file Rakefile Fri Jan 25 12:22:19 -0800 2008 initial commit [technoweenie]
directory lib/ Sun Apr 06 08:11:54 -0700 2008 add Duplikate#ignore [osteele]
directory spec/ Sun Apr 06 08:11:54 -0700 2008 add Duplikate#ignore [osteele]
README
duplikate
=========

# process the differences between the two directories:

dupe = Duplikate.process 'my-git-repo', 'my-svn-repo'
dupe.added_files         #=> [..., ...]
dupe.added_directories   #=> [..., ...]
dupe.deleted_files       #=> [..., ...]
dupe.deleted_directories #=> [..., ...]
dupe.existing_files      #=> [..., ...]

dupe.report

# Or actually make the changes and commit in svn:

Duplikate.execute 'my-git-repo', 'my-svn-repo'

TODO: Actual real-world usage!