On Fri, Nov 11, 2005 at 02:22:09PM +0100, Wolfgang Jeltsch wrote:
> > I think a proper directory structure is a better answer.  Perhaps it
> > should be added to the "Best Practices" on the wiki.
> 
> Maybe the user shouldn't be forced to use a proper directory structure for 
> his/her source tree but darcs should use a "proper directory structure", 
> meaning that darcs init shouldn't modify the source tree by adding a 
> directory to it but should store its repository meta-information elsewhere.

Alternatively, there could be an option to 'darcs get' that would place
the working files in a subdirectory. For example you could populate the
repo in a directory with structure:

    . -- foo.c
      |
      |- foo.h
      |
      `- main.c

and then you could 'darcs get --working-subdir=working ...' and get:

    . -- _darcs -- ...
      |
      `- working -- foo.c
                 |
                 |- foo.h
                 |
                 `- main.c

This would require adding some setting under _darcs, but would be quite
transparent. For example, I think that older darcs version would be
still able to pull and get from this repository. On the other hand,
there could be problems with push.

Of course you can get a similar effect today with 'darcs mv',
but perhaps sometimes it would be better to have this without
adding any patches.

Best regards
Tomasz

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to