how to automatise the VCS?

Martin Pool mbp at sourcefrog.net
Tue Aug 21 01:08:43 BST 2007


On 8/21/07, Tim Michelsen <timmichelsen at gmx-topmail.de> wrote:
> Hello,
> I am very new to version control in gerneral and Bazaar in special.
>
> I want to use Bazaar for my own codings like system tools, small helpful
> bash scriptings and for my python learning experineces, gnuplot files etc.
>
> all scripts reside in a branch at
> ~/devel/bash
> ~/devel/python
>
> Since I am not a fulltime programmer and coder I'd like to automatise
> the process. If not I will forget that I once started with using SCM...
>
> * is there a possibility to watch my whole directories under ~/devel and
>   do a automated commit after a file in these directories has been changed?

Hi Tim,

You can do something like

  while true
  do
     bzr commit -m 'autocommit' ~/devel
     sleep 30
  done

But I wouldn't recommend this, because you won't have meaningful
commit messages, or any guarantee that the files are in a working or
consistent state when the commit is made.  Better to get the habit of
doing a diff and commit every time you make a bit of progress.


-- 
Martin



More information about the bazaar mailing list