jgillick / codesync Goto Github PK
View Code? Open in Web Editor NEWImmediately syncs file changes to a remote machine.
Immediately syncs file changes to a remote machine.
Hi, just wanted to share this with you if you weren't aware of it. If you use an Apache based SVN server, there's a configuration setting you can enable 'autoversioning' as described in http://svnbook.red-bean.com/en/1.7/svn.webdav.autoversioning.html
By default, SVN exposes itself as a WebDAV filesystem which Windows,Linux and OSX all natively support as a 'first-class' filesystem that can be mounted/read/write/unmounted transparently to applications - when you enable autoversioning, any time you save a file it will automatically check it in to SVN.
The only caveat with this method is that Windows and OSX both use tmp files as a standard precaution against nuking files - so when you save a file from an application, it'll open up a tmp file, write it all out, close it and then do an atomic rename to replace the 'real file'. That way there's no chance of losing your content. The result being that your SVN log gets 2 'actions' for every time you save a file, a create and a rename. But, if you're ok with that, and you control the SVN server you're connecting to - it's another way to accomplish the same thing.
Obviously this method vs. your application serve different purposes, and I'm not suggesting that you stop persuing the app. Just wanted to share as it's been a nifty trick I've used in non-standard situations like editing audio fiiles where I wanted to be able to have 'versions' no matter what.
Right now, it's hard coded (line 160) to use --exclude-cvs which is too restrictive on projects that have a nested tags directory. It should be possible to define the excludes in the project file and have those passed through.
Ref: http://rsync.samba.org/ftp/rsync/rsync.html
matches:
RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state .nse_depinfo *~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .hg/ .bzr/
Really it's just tags and TAGS that complicate things as those can be directory names normally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.