[Biopython-dev] history on github - where are the tags?

Bartek Wilczynski bartek at rezolwenta.eu.org
Sun Apr 26 08:08:51 EDT 2009


Hi all,

On Wed, Apr 22, 2009 at 11:23 AM, Peter <biopython at maubp.freeserve.co.uk> wrote:
>
> If you can fix the current git hub repository, great.
>
I 've finally found some time to fix the tag issue in our repository.
I've actually spent some time looking at git-rebase (learned a lot,
but nothing useful for our problem. Then I realised that since tags
are just references to commits, we need to move them to the trunk
(instead of re-basing the trunk).

Long story short - assuming you are in the directory of your git repo
you can fix any particular tag wit a single command. E.g. If you want
to fix the biopython-149 tag, you do:
git tag -f biopython-149 biopython-149~1

-f option enforces the replacement of the existing label, while
biopython-149~1 references the parent commit of our empty tag commit
(you can also use ~2 for a grand parent and so on).

You can see the effect of this procedure (as seen in gitx -- a very
nice tool) in the attached images.

If you want to fix all biopython tags, you simply do:

for t in `git tag|grep biopython`; do git tag -f $t $t~1; done

It  works locally, the changes can be pushed back to github (need
--tags -f to force tag renames),
I've done this on my branch of biopython on github.

If there are no objections to the way tags are handled, I can try to
update the trunk.
This is a bit tricky, because I need to make the update scripts work
nicely with moving
the tags, but it should be doable.

> The old conversion's deletion is still in progress, it must have stalled:
> http://support.github.com/discussions/repos/485-reposiotry-stuck-in-rename

Seems to be gone now. that's one problem less :)

>
> If we can fix the tags, great.  If we can also remap the authors to
> their git usernames, even better.
>
This is doable in the current setup. I don't know whether we need to
do this. The old commits
are signed by the same credentials (name, e-mail) as on CVS server. If
we start re-mapping them
now, we are going to have essentially a new commit history, so
everybody would need to rebase their
branches... I don't see a problem of having old commits signed with
old e-mails, and new commits
signed by new. Especially, that everybody can have multiple e-mails
assigned to their github account
(that's how I did with mine).

cheers
 Bartek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before.png
Type: image/png
Size: 18855 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/biopython-dev/attachments/20090426/41ff78d9/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after.png
Type: image/png
Size: 15150 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/biopython-dev/attachments/20090426/41ff78d9/attachment-0003.png>


More information about the Biopython-dev mailing list