Adding comments to groups of changes?
Arne Babenhauserheide
arne_bab at web.de
Thu Jun 26 13:46:47 CDT 2008
I now have a basic idea how to implement this.
I'll write up a concept and post it here, then.
Best wishes,
Arne
Am Donnerstag 26 Juni 2008 20:07:53 schrieb Arne Babenhauserheide:
> Hi Benoit,
>
> Am Donnerstag 26 Juni 2008 16:41:40 schrieben Sie:
> > I never heard of any feature like that in the past, but I actually also
> > like the concept ...
> >
> > Looks feasible to me to implement it as an extension defining the group
> > command and overwriting the log command showing the groups instead of
> > the changesets if any. groups could be identified by hashes based on
> > their sub components. Another command to inspect the content of the
> > groups might be usefull also.
> >
> > Care to write a proof of concept ?
>
> I'll try to.
>
> I'm not a professional developer, though.
>
> But maybe we could first discuss how best to implement it.
>
> More exactly I currently see several interesting points:
> 1) How can the information be stored, and how can it be implemented in the
> log? Since a changeset is a collection of changes, can a group be
> implemented and stored similarly? Can a group be stored as a kind of
> changeset? Or is there already some other structure I could use?
>
> 2) As a group can contain merges and non-concurrent revisions, a group can
> have more than 2 parents. More exactly: logically it has all parents of
> changesets whose parent/-s isn't/aren't also in the group, and the same is
> true for children. How can that be properly implemented in the log to not
> break other commands?
>
> 3) Would the group command be useful, if it could only contain concurrent
> revisions? What would happen if then someone created a new branch from one
> of the revisions inside the group? -> one more child node. We're back at 2,
> so restricting to concurrent revisions won't be feasible -> simplistic
> solution rejected.
>
> I started a module, which doesn't yet do much, but adding the group command
> to Mercurial:
> -> http://freehg.org/u/ArneBab/hgext_group/
>
> Best wishes,
> Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20080626/f2994196/attachment.pgp
More information about the Mercurial
mailing list