EMSRV for text files

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

EMSRV for text files

Postby FredF » Wed Nov 10, 2010 4:43 am

I was wondering if it is possible to use EMSRV to store/version text files (files containing code in fact).
Has anybody experience with that?
If this is not possible, should we set these text files as comment of dummy methods in a dummy class to achieve the same kind of result?
What we are looking for is to use our well known environment to manage/version text files containing programs instead of installing a MS-Visual source save or Subversion server.
Posts: 18
Joined: Tue Feb 05, 2008 6:50 am

Re: EMSRV for text files

Postby koschate » Wed Nov 10, 2010 8:06 am

You can store just about any arbitrary file you want in the repository, but each new version ends up increasing the size of the repository by the size of the object, and the only good way of recovering the space is to clone the repository. For versioning non-Smalltalk items, you really are better off using Subversion or Git. I wouldn't use VisualSourceUnsafe for anything I cared about.
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: EMSRV for text files

Postby jtuchel » Thu Nov 11, 2010 12:12 am

Hi ,

There are several options. As Tom already mentioned, yiou can store text files as user objects. There is no tool support for user objects, however. This means you can't compare versions etc.

One thing you can do: compile the text files as methods into a class and store/version this class in the envy repository.
This way you can look at the text with Smalltalk Browsers and even search/diff etc.

You can even go further:
In one of our customer projects, we convert INI-Files to instances of a special class. This way we have tools to edit the ini files in the Smalltalk image and version changes to them. This allows for a great level of synchronisation of changes between developers, configuration of our deliverables and also for automation of file distribution. If you'd like to see this in action, you can watch it in a video of my talk at the VA Smalltalk Forum Europe 2010, available here: http://www.objektfabrik.de/Downloads/VASTForum2010/VFM10-04-GetBackToShapre-Tuchel.mp4

But I would only recommend these options if the text files aren't too big. I guess I'd rather not store MiB's of text files. It sure is better to use git, svn or any other file-based vcs if you need to store large files.

Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Google [Bot] and 1 guest