[darcs-users] Moving a tag?

David Roundy droundy at abridgegame.org
Fri Jun 25 09:49:51 UTC 2004


On Wed, Jun 09, 2004 at 06:37:44PM +0200, Juliusz Chroboczek wrote:
> >> I would be tempted to work in ~/repos/* which are
> >> mirrored (pushed) to ~/public_html/software/repos/*.
> 
> DR> That would depend on how you created
> DR> ~/public_html/software/repos/foo-devel and
> DR> ~/public_html/software/repos/foo-stable in the first place.
> 
> The only patch they share is the one called ``Initial import''.  (Of
> course, I could re-clone them from scratch if I wanted.)
> 
> Feature request: allow pull and push to create links when safe.  It
> should create all pssible links in the case when a repo is a simple
> mirror of another one.

Push can't do this by design, and I don't think we want to change the
design... although I suppose that we could make push recognize and work the
same as pull if the target directory is a local directory...

But setting pull up to create links has long been on the TODO list.  On the
other hand, it's been there long enough that one might wonder if it'll be
there forever.  The annoying part of setting up hard links with pull is
that you have to be careful to do it only when the merge hasn't modified
the patches.

> DR> The working dir is certainly unnecesary,
> 
> Feature request: an option to get, push and pull that causes them to
> ignore the working dir.

Hmmm.  I'm a bit afraid this might be confusing.

It wouldn't be too hard to do, though... really it would be get, apply and
pull that would need modification, since push itself already ignores the
working directory (but it calls apply on the target).  If you want to
submit a patch to do this, I'd accept it.  I'd call it
--dont-update-work-directory or something like that.  A long name is fine
as a safeguard against misunderstandings, and since it probably will only
ever be used in the _darcs/prefs/default file.

> DR> but the cached current copy is necesary in order to validate
> DR> patches that are being applied (e.g. via push).
> 
> Feature request: allow _darcs/current to be hard linked (by all of
> get, push and pull).  By the way, is it safe right now to do that by
> hand?

Yes, _darcs/current can (and should) be hard linked, since darcs always
modifies files by writing a new copy and renaming it (so it won't modify
the other repo).
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list