Am Mittwoch, 12. August 2015, 23:20:21 schrieb Bram Moolenaar:
> 
> Markus Heidelberg wrote:
> 
> > 1. Cleanup in the HG repository
> > *******************************
> > 
> > a check whether the rebase extension is enabled.
> 
> I think I already have it enabled, my .hgrc contains:
> 
> [extensions]
> hgext.convert=
> hgext.extdiff=
> rebase =
> mq =

Yes, it is enabled.

> > Basically it does two things:
> > - close the unused or invalid branches
> > - fix and complete the tags
> > 
> > My test runs I performed like this:
> > 
> >   # copy the original HG repository
> >   cp -a vim-hg vim-hg-copy
> >   
> >   # clone the copy
> >   hg clone vim-hg-copy vim-hg-copycloned
> > 
> >   # run the cleanup script
> >   cd vim-hg-copycloned
> >   sh ../cleanup/hg-cleanup.sh
> > 
> >   # push back from the cloned copy to the initial copy to verify that no
> >   # history has been rewritten, elsewise this command would fail
> >   hg push
> 
> So, what you are doing here is to simulate pushing back to the
> Mercurial repository on Google code.  Although the "hg push" could also
> be done on the vim-hg-copy repository, would do the same thing.

Yes, some kind of simulation for the public push later.

Pushing from vim-hg-copy (if having executed the script there or after
having pushed from vim-hg-copycloned to it) would push to Google.

You can easily see the push destination in file .hg/hgrc to avoid the
fear of an undesired public push.

> As I asked on Christian's message: We can do this even before exporting
> to github, right?

Yes.

> > 2. Conversion from HG to Git
> > ****************************
> > 
> 
> So, what we would need to do is use the export to github for whatever
> functionality it provides, but then wipe the git repository, do the
> conversion from Mercurial to git locally, and then upload the result to
> github.  Since this is going to be the new root for what everybody uses,
> we better make sure this is a clean repository.

Exactly!

> > 3. Cleanup in the Git repository
> > ********************************
> > 
> > There were suggestions to use the Git mirror from vim-jp as base for the
> > official repository, don't know if this is still an option.
> 
> Only if there are real advantages.  I tend to think not.

OK, then I would document a procedure for local HG to Git conversion and
create a script for Git repository cleanup.

> > But the script won't mess up anything in the first place.
> 
> Fingers crossed!

:)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui