Branches and web interface and URLs

Matt Mackall mpm at selenic.com
Wed Mar 17 18:35:56 CDT 2010


On Wed, 2010-02-17 at 13:47 +0100, Dirkjan Ochtman wrote:
> On Wed, Feb 17, 2010 at 13:30, Mads Kiilerich <mads at kiilerich.com> wrote:
> > What do http://selenic.com/repo/hg/branches really show? Apparently not
> > "branches" as the texts indicate, but more like "current named branch
> > heads"?
> 
> Why do you say that? From the code, I think it shows all named branches.
> 
> > Wouldn't it make sense if the branch names linked to for example
> > http://selenic.com/repo/hg/branch/stable (which shows "changesets on the
> > branch and their ancestors"?) ?
> 
> Yes, that would make sense, but no one has worked on it so far.

The trickiest thing here, I think, is to retrofit a branch selection
syntax into our URL schema. We might want to do this with something like
cookies instead.

> > We have the http://selenic.com/repo/hg#stable notation which works for
> > cloning but doesn't work in web interface. Shouldn't it be shown in the web
> > interface anyway?
> 
> Shown, or be supported? The latter is probably a little ugly/hard.

The #stable anchor bit doesn't even get passed to the server when used
in a browser.

> > http://selenic.com/repo/hg/branch/stable works in web interface but can't be
> > used for cloning. Shouldn't the latter be extended to work for branch
> > cloning as well?
> 
> I think that would suck for other protocol implementors, but if we
> grow a page/webcommand like there, we could show a clone URL showing
> the # syntax somewhere at the top.


-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list