How to branch from a tag at http://hub.darcs.net?

108 Views Asked by At

We know that darcs has no special support for internal branches, but http://hub.darcs.net allows to fork a repo, and then track the fork as related to the mainline repo. (The related repos are displayed in the "branches" section on the site.)

What forking does is copying the current state of a repo.

What if I want to branch from an older tag (to continue development from that older state in the new branch)? (And still have the branch/fork be tracked as a related repo under "branches".)

2

There are 2 best solutions below

4
Ganesh Sittampalam On

You can fork the repository and then use

ssh hub.darcs.net obliterate <reponame>

to remove patches.

Unfortunately it doesn't currently accept any arguments which makes going back to a tag a bit inconvenient, but it still should be possible.

0
Simon Michael On

You can also do something like

  • darcs get a local copy of the repo and darcs obliterate -a -t TAG locally (or, darcs get -t TAG ...)

  • delete the hub repo and re-create it (via web, or ssh hub.darcs.net init REPO)

  • darcs push -a.