[darcs-devel] [issue990] --repository option for record

Florent Becker bugs at darcs.net
Tue Aug 12 17:19:03 UTC 2008


New submission from Florent Becker <florent.becker at ens-lyon.org>:

In complement to issue #431, it would be nice to be able to do darcs record
--repository /some/where, and have darcs record into repository /some/where,
using the current directory as the working directory. (likewise for
amend-record). Conversely, add the --repository option to revert, turning the
current directory into the pristine of the repository.

Why have this feature ? It would make sense if working-directory-less repos were
implemented (cf issue 431). Together, they would allow a workflow like git's
with one working repository for several branches. Each of the branches would be
a working-directory-less repo, and one would use darcs revert --repository
my-branch to change the current branch (ala git checkout branch, if i'm not
mistaken). Even if it is not our favourite workflow (and probably shouldn't be),
it can be a life-saver when disk space is scarce (or when the repo contains big
files). In that case, the über-cache and hardlinks mean that having numerous
repos is not that much more expensive than having just one, and having only one
copy of the working dir for them all divides disk-usage by the number of branches.

Additionally, and if I understand rebase correctly, it would also make a simple
implementation of rebase. Go to the repository where your functionality is
implemented, and darcs record --repository /new/base gives you a «rebasing patch».

----------
messages: 5422
nosy: beschmi, dagit, galbolle, jaredj, kowey, tommy
priority: wishlist
status: unread
title: --repository option for record
topic: Git, ProbablyEasy, UI

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue990>
__________________________________


More information about the darcs-devel mailing list