Christian Brabandt wrote:

> > > On Do, 13 Aug 2015, Bram Moolenaar wrote:
> > > 
> > > > Then, I want to check in a change to Google code only, that produces an
> > > > error when trying to build that version.  This is because there is no
> > > > way to stop the Mercurial repository from serving, users who simply pull
> > > > there won't notice anything wrong (except not getting any more updates).
> > > > So you would need to halt your update script before that happens, and
> > > > sync from github.  This *should* have the same version history then.
> > > 
> > > I already sync from github ;)
> > > 
> > > But if you check in an error to google code, that means, users won't be 
> > > able to just switch the repository URL, because a commit would be 
> > > missing? Can't we just keep the Google Code repository alone? It will be 
> > > closed in January anyhow, so users should notice 4 month later when the 
> > > urls won't work anymore.
> > 
> > If it works better to have a linear sequence, we could checkin the
> > change to Google code, and then in the new repository revert it.
> 
> Yes, that's what I am going to do. I will sync the broken commit and 
> then revert it. After that the sync from the github repository should 
> work.

I don't know what you mean with "revert it".  I was thinking of applying
a patch to break it, then applying a patch to unbreak it, do the
reverse.  If you stop in between you get the broken version, which will
be the end state on Google code.

> > The only problem with this is that there won't be a grace period, the
> > moment I do this everybody is forced to switch over.  Hmm, unless I
> > delay pushing this change to Mercurial, which means I have to keep this
> > locally when converting to git.  That would work.
> 
> Just tell me, when you are going to do this. I will then reclone and 
> setup everything afterwards. I need some time, in the evening next week 
> would be good.

I think I found a way to do this: I push the last patch to Google code,
then locally apply the patch to break it.  Copy this repository, and
apply the unbreak patch to the copy.  Then convert the copy to git and
push this to github.  A week later or so I push to Google code from the
original repo, thus pushing the break patch.  At any point the github
repo has a linear line of commits on top of the Mercurial repo.

I think I found a way to push from a local repository: After doing the
export from Google code, ending up with a "dirty" github repository, use
"git push --mirror" to overwrite it with my local cleaned up repository.
Perhaps by first creating an empty repository and mirroring that, to
make sure it's really empty, before doing the "git push --mirror" with
the cleaned up repository.  Although I suspect doing it once will have
the same result.

> > Problem with waiting is that users have no clue whatsoever why they are
> > not getting updates.  Someone reading outdated instructions may think
> > this is still the official repository.
> 
> Speaking of which, http://www.vim.org/develop.php
> needs to be adjusted.
> 
> At the very least the new repository should be added
> 
> But better would be to have a version, that explains how to work with 
> git.
> 
> And how to handle runtime patches should be explained as well.

Yes, the pages need to be updated.  Also we need a page with a
step-by-step explanation for users who need to make the switch.
They have several options:
- Drop the Mercurial repo and get the github one, just like starting
  from scratch.
- Change the Mercurial repo to sync from your bitbucket mirror.
- Switch from Mercurial to github, but taking over any local changes.

Not sure how to do the third one, perhaps with some export and import.

If you would like to write one of these, that would be great.


-- 
There are three kinds of people: Those who can count & those who can't.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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