# Can we write the code version control system

**URL:** <https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402>\
**Category:** Ruby\
**Created:** [February 13, 2007, 7:27am UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402 "2007-02-13T07:27:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 13, 2007, 7:27am UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/1 "2007-02-13T07:27:13Z")

</div>

Hi,  
Can We write the code in Ruby to know the Frequently changing classes in  
SVN (like version control system) which are check in.

My doubt,

1. Is it worthy to do in PYthon…?

2. else, which scripting language is best one for this…?

Regards ,  
kumar

---

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 13, 2007, 7:51am UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/2 "2007-02-13T07:51:19Z")

</div>

On Feb 12, 10:27 pm, kumar [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> Can We write the code in Ruby to know the Frequently changing classes in  
> SVN (like version control system) which are check in.

I, for one, have absolutely no idea what you’re trying to ask here.  
You might need to explain what you’re trying to accomplish in a bit  
more detail.

> My doubt,
> 
> 1. Is it worthy to do in PYthon…?

Well… maybe…but this is a Ruby mailing list. 😉

–  
Regards,

John W.

---

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 13, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/3 "2007-02-13T17:13:19Z")

</div>

On 2/12/07, kumar [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> Can We write the code in Ruby to know the Frequently changing classes in  
> SVN (like version control system) which are check in.
> 
> My doubt,
> 
> 1. Is it worthy to do in PYthon…?

If you know Python best, sure!

> 1. else, which scripting language is best one for this…?

That depends on your objective. If you want it done fast, then pick  
the language you know best. If you want to learn a new language (like  
ocaml) then pick that one. If you are working with others on this  
project (or it is going to be maintained by someone else) then get  
their input on what languages they know or feel comfortable with.

The svn team has a set of swig wrappers for their C libraries. So you  
can use pretty much any scripting language you like. Be forewarned  
that the swig generated interfaces are fairly low level – nothing  
like the command line svn tool.

Blessings,  
TwP

---

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 13, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/4 "2007-02-13T17:22:20Z")

</div>

In other words, it’s something pretty simple, so simple that the  
language you use for it might not make any difference at all.

---

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 13, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/5 "2007-02-13T22:00:55Z")

</div>

On 2/13/07, kumar [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> Can We write the code in Ruby to know the Frequently changing classes in  
> SVN (like version control system) which are check in.

I do not know what you are looking to do. You need to provide a more  
detailed description of exactly what you want to do. It sounds like you  
want some simple front-end to either CVS (as you mentioned in previous  
messages) or Subversion. You can certainly do some cvs or svn  
commands via IO.popen(), and then parse the output which comes  
back from those commands. I believe subversion also has some sort  
of specific “bindings” for using subversion from ruby (or python), but I  
have no idea if similar things exist for CVS.

If you want to write a brand new version-control system, something  
to _compete_ against CVS or subversion, then that is a much much  
larger job. You can do that too, of course, but you need to have a  
very good understanding of what is needed in a source-control system.  
And you must be prepared to do a lot of work writing it, if you want  
something which will can do a good job with all the things that CVS,  
subversion, perforce, mecurial, or git already do. There are already  
a number of very busy projects which are trying to create the “best”  
version-control system.

My doubt,

> 1. Is it worthy to do in Python…?

Ruby or python, whichever one you’re more comfortable with.

---

<div class="post-metadata">

**Author:** ![kumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kumar](https://www.ruby-forum.com/u/kumar)\
**Post date:** [February 15, 2007, 10:43am UTC](https://www.ruby-forum.com/t/can-we-write-the-code-version-control-system/85402/6 "2007-02-15T10:43:44Z")

</div>

On Feb 12, 2007, at 22:27, kumar wrote:

> Hi,  
> Can We write the code in Ruby to know the Frequently changing  
> classes in  
> SVN (like version control system) which are check in.

SVN post-commit hooks? yes.

> My doubt,
> 
> 1. Is it worthy to do in PYthon…?
> 
> 2. else, which scripting language is best one for this…?

I’ve written them in shell when shell would make them shortest.
