Edgewall Software

Ticket #1492 (new enhancement)

Opened 3 years ago

Last modified 20 months ago

support for non-linear changeset sequences for monotone-like VCS

Reported by: anonymous Owned by: cboos
Priority: normal Milestone: 0.13
Component: version control Version: devel
Severity: normal Keywords:
Cc: lapo@…

Description (last modified by cboos) (diff)

Considering 2.0 enhancements it would be great to support monotone http://venge.net/monotone/ SCM system. It grows very fast and was considered by Linus Torvalds to replace BitKeeper?, in fact git (a fast written Linus's tool to manage Linux sources w/o any SCM) was desinged based strictly on ideas behind monotone.


Development of a trac plugin for connecting to a monotone repo has been started, see http://www.ipd.uni-karlsruhe.de/~moschny/TracMonotone

This ticket can be used to discuss the additional requirements for the ["TracDev/VersionControlApi" version control layer] that would be needed for improving the support for Monotone.

If I remember correctly, this is mainly:

  • support for full, normal and shortened revision numbers
  • support for multiple branches/repositories (related to #2086)

Attachments

Change History

  Changed 3 years ago by anonymous

  • summary changed from monotne support to monotone support

See also the Darcs support patch in ticket #638. It contains a generic SCM backend interface that the Monotone support probably could implement.

  Changed 3 years ago by cboos

Well, no: There's an official generic SCM backend interface currently in current development version of Trac, and this is the one to implement. See source:trunk/trac/versioncontrol/main.py#latest

  Changed 3 years ago by cboos

s/currently// sorry :)

  Changed 3 years ago by vittorio

  • severity changed from normal to enhancement

  Changed 3 years ago by njs@…

As current head cat-herder/developer behind monotone, I thought I'd put in a word here... I'm definitely interested in seeing this happen (it'd be nice to use trac for monotone development itself!). I thought a bit about adding it myself, but simply don't have the time; but, if someone else decides to take a shot at it, we'd definitely be interested in helping provide info, fixing interfaces to be more usable, etc.

Monotone might be an interesting target in any case, since it's one of the most different VCSes from subversion -- unlike subversion it has first-class branches and tags (so a monotone repo is not a simple singly-rooted tree), and unlike, say, darcs or arch or bzr-ng, it has microbranches (so even within a branch, history is a DAG, not a line). Looking at source:trunk/trac/versioncontrol/api.py#2127 , the current API seems to assume that history is a straight line (e.g., that each revision has exactly one predecessor and successor); this simply isn't true for several of the new generation of VCS tools. So if you can support monotone, you can probably be pretty sure that your design can support anything :-).

  Changed 3 years ago by cmlenz

  • owner changed from jonas to cmlenz
  • component changed from general to version control

  Changed 3 years ago by anonymous

  • milestone set to 2.0

  Changed 3 years ago by lapo@…

  • cc lapo@… added

  Changed 3 years ago by anonymous

  • cc jm3@… added; lapo@… removed

  Changed 3 years ago by anonymous

  • cc lapo@… added; jm3@… removed

  Changed 2 years ago by moschny

Development of a trac plugin for connecting to a monotone repo has been started, see http://www.ipd.uni-karlsruhe.de/~moschny/TracMonotone/.

  Changed 2 years ago by cboos

  • description modified (diff)
  • milestone changed from 2.0 to 0.11

I'm setting a milestone here for the improvements on the versioncontrol API and web interface, not for the plugin itself, of course.

  Changed 2 years ago by moschny

For the problem of long revision ids, see #3533.

follow-up: ↓ 15   Changed 21 months ago by cboos

  • owner changed from cmlenz to cboos
  • summary changed from monotone support to support for non-linear changeset sequences for monotone-like VCS

As mentioned in comment:5, the biggest challenge for integrating Monotone-like VCS (like hg, git, bzr) in Trac is the assumption of a linear succession of changesets.

This assumptions shows in a few places:

  1. Previous change / Next change links
  2. Revision log view

For 1. it's possible to follow the first parent/first child, as I've done in TracMercurial. In case this is not what is wanted, it's always possible to follow explicitly the second parent or another child from the changeset view.

For 2. the linear view in the TracRevisionLog is really problematic. There should be at least some indication that a given changeset is either a branch point or a merge point (or both, of course).

in reply to: ↑ 14   Changed 21 months ago by moschny

Replying to cboos:

As mentioned in comment:5, the biggest challenge for integrating Monotone-like VCS (like hg, git, bzr) in Trac is the assumption of a linear succession of changesets.

Agreed.

1. Previous change / Next change links
For 1. it's possible to follow the first parent/first child, as I've done in TracMercurial. In case this is not what is wanted, it's always possible to follow explicitly the second parent or another child from the changeset view.

We should remove the "previous" and "next revision" links, and instead only have the set of "parent" and "child" links.

But there's more than that. In the vc api we should clearly separate the notions of "before/after" and "parent/child". As you wrote somewhere in a comment, these two are not interchangeable even for subversion, and they are surely not for Monotone.

However, both concepts may be needed. The timeline clearly uses the first concept, while the changeset view relies on the second.

2. Revision log view
For 2. the linear view in the TracRevisionLog is really problematic. There should be at least some indication that a given changeset is either a branch point or a merge point (or both, of course).

What people really want (but that might be some work to get it implemented) is a gitk/hgk/bzrk like display of the history, be it for repositories (resp. branches) or single nodes.

See

for examples of how it could look like.

  Changed 21 months ago by moschny

The other possible visualization method preferred by many people is a graph of revisions, similar to that provided by the th:wiki:RevtreePlugin. In case of Monotone, the "standard" visualization is that generated by ViewMTN and monotone-viz.

follow-up: ↓ 18   Changed 21 months ago by cboos

The discussion about the visualization pertains rather to #1445. As noted there, I think that while a graphical representation is neat, we should first concentrate on getting that information available in a clear way in the traditional TracRevisionLog HTML view.

in reply to: ↑ 17   Changed 21 months ago by moschny

Replying to cboos:

As noted there, I think that while a graphical representation is neat, we should first concentrate on getting that information available in a clear way in the traditional TracRevisionLog HTML view.

Sure. But instead of inventing a new way to linearise a dag like revision history, we should have a look at what existing ("..k") tools do; that was the intention of my comment:15.

  Changed 20 months ago by cboos

  • milestone changed from 0.11 to 0.12

Add/Change #1492 (support for non-linear changeset sequences for monotone-like VCS)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.