List Info

Thread: version names




version names
country flaguser name
United States
2007-08-13 14:24:16
Hello, we have our code repository managed by darcs, and I'm
looking  
for input on how to accomplish some version management the
'darcs way'.

The main file of interest is a which creates a database by
way of SQL  
commands.  After that database is created, for production
instances  
of the database, we'd like to have an intermediate file
which can  
modify the database as it's running with more SQL commands.

As "incremental" file gets additional changes to
apply to the  
production database, the main file as its kept in the
repository will  
also get changed in the case that a production database
needs to be  
made from scratch.

So we basically have a moving target of files, and I was
wondering if  
darcs or darcs users have any methods for dealing with this.
 At the  
very least, it'd be nice to get at the hash name for a
particular  
patch so that we could at the very least "name"
the incremental file  
after the hash name of the main file.

Any suggestions would be appreciated.

thanks,
-lev
_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net

http://lists.osuosl.org/mailman/listinfo/darcs-users

Re: version names
user name
2007-08-14 15:52:50
On Mon, Aug 13, 2007 at 12:24:16PM -0700, Lev Lvovsky
wrote:
> Hello, we have our code repository managed by darcs,
and I'm looking for 
> input on how to accomplish some version management the
'darcs way'.

I'm not sure I understand exactly what you are looking to
do.
However, your comments bring to mind the 'darcs tag'
command, which
creates a snapshot patch of the state of your repository. 
You can
then pull that tag to bring your copy of the repository up
to that
state.

> So we basically have a moving target of files, and I
was wondering if darcs 
> or darcs users have any methods for dealing with this. 
At the very least, 
> it'd be nice to get at the hash name for a particular
patch so that we 
> could at the very least "name" the
incremental file after the hash name of 
> the main file.

  # release
  editor main_file
  darcs record main_file
  darcs tag v0.01

  # updates
  editor incremental_file
  darcs record incremental_file
  editor incremental_file
  darcs record incremental_file

  # move changes from incremental file into main_file
  # and release
  editor main_file incremental_file
  darcs record main_file incremental_file
  darcs tag v0.02

-kolibrie


_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net

http://lists.osuosl.org/mailman/listinfo/darcs-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )