darcs

Issue 1647 overhaul format mechanism: local and optional formats

Title overhaul format mechanism: local and optional formats
Priority feature Status given-up
Milestone 2.8.0 Resolved in
Superseder Nosy List dmitry.kurochkin, ganesh, kowey, mornfall, tux_rocker
Assigned To
Topics

Created on 2009-10-11.07:55:45 by kowey, last changed 2017-07-31.00:07:12 by gh.

Messages
msg8952 (view) Author: kowey Date: 2009-10-11.07:55:43
One nice idea in Camp is to have a separate 'primary' format that you consult
for reading a repo and a 'secondary' format that you consult for writing to it.

Right now, Darcs only has the equivalent of the primary format.

I think it would be useful to introduce the notion of a secondary or local
format, which would contain things you absolutely do not have to care about
unless you actually want to write to the repository.

The use case I have in mind is for the --no-working-tree option.  Darcs apply
should not attempt to touch the working directory if a repo was initialised as such.

I think the right way to introduce the local format is when there are local
format options available to write "localformat" into _darcs/format (which
indicates that this repo requires support for the "localformat" mechanism). 
This could cause compatible darcsen to check _darcs/localformat (or whatever).
msg9633 (view) Author: kowey Date: 2009-12-15.08:59:39
Petr was working on this over the sprint, and has devised a new format
mechanism, a very simple one that allows us to accomodate things like 'optional'
features (the pristine tarball) and also no-working-tree.

If I remember correctly, it involves splitting things into key-value pairs (fmt
borrowed by some RFC):

pristine: hashed
semantics: darcs-2
working-dir: enabled
optional: pristine-tarball
msg10342 (view) Author: kowey Date: 2010-03-21.06:43:02
I'm adding Ganesh to this because darcs rebase will need to have a
format for rebasing repos.

I'm also unassigning Petr, who I think is busy making Darcs fast :-)
msg11433 (view) Author: tux_rocker Date: 2010-06-15.15:59:36
And I'm assigning back to kowey again. By now it's not realistic to
design a new format before the 2.5 release. Is there a way to complete
issue1277 without completing this one?

Bumping to 2.6.
msg11434 (view) Author: kowey Date: 2010-06-15.16:04:56
Looks like it's not a prerequisite to issue1277 (although it would be
nice).  I'm afraid this will have to fall to the collective.  Maybe
something for the 2010-10 sprint agenda.
msg12713 (view) Author: kowey Date: 2010-10-16.14:06:37
Three case studies:

- packs (optimize --http?)
- no working directory
- rebase
msg12714 (view) Author: kowey Date: 2010-10-16.14:07:18
See also issue1099 (format mechanism should also extend to patch bundles)
History
Date User Action Args
2009-10-11 07:55:45koweycreate
2009-10-11 07:56:09koweysetnosy: kowey, darcs-devel, dmitry.kurochkin
title: introduce notion of "local" format ala camp -> introduce notion of "local" format a la Camp
2009-10-11 07:57:18koweylinkissue431 superseder
2009-12-15 08:59:42koweysettopic: + Target-2.5
nosy: + mornfall
assignedto: mornfall
messages: + msg9633
title: introduce notion of "local" format a la Camp -> overhaul format mechanism: local and optional formats
2010-03-21 06:43:04koweysetnosy: + ganesh
messages: + msg10342
assignedto: mornfall -> (no value)
2010-06-15 15:59:37tux_rockersettopic: + Target-2.6, - Target-2.5
assignedto: kowey
messages: + msg11433
nosy: + tux_rocker
2010-06-15 16:04:57koweysetnosy: - darcs-devel
messages: + msg11434
assignedto: kowey ->
2010-06-15 21:08:01adminsettopic: - Target-2.6
2010-06-15 21:08:01adminsetmilestone: 2.8.0
2010-10-16 14:06:39koweysetmessages: + msg12713
2010-10-16 14:07:18koweysetmessages: + msg12714
2017-07-31 00:07:12ghsetstatus: needs-implementation -> given-up