On 21/08/10 23:22, sc wrote:
On Saturday 21 August 2010 15:52:09 Xavier de Gaye wrote:
On Sat, Aug 21, 2010 at 6:48 PM, Tony Mechelynck wrote:
On 18/08/10 14:49, Xavier de Gaye wrote:
Actually, having multiple heads in the same branch may be
considered as not a problem. When we have local changes,
after pulling from the official repository, in order to
merge the new official changesets into our own local
changes, we now have to run (where<highest revision number>
is given by 'hg heads' for example):
hg merge -r<highest revision number>
instead of previously with only one head:
hg merge
Also, with multiple heads in the current branch, the "fetch"
extension cannot be used: instead of one command
hg fetch --switch-parent
you have to run three
hg pull -u
hg merge -r ab3fc5de6b49
hg commit -m 'merge for patchlevel 7.3.004'
and the text for the latter two (or at least for the middle
one) varies every time.
You may also run:
hg pull
hg merge -r tip
hg commit -m 'Automated merge with
http://vim.googlecode.com/hg/'
Nothing varies in the above three statements, and these
statements can go in a 'my_fetch.sh' script.
unless and until runtime/doc/tags needs a commit, in which
case you'll need an extra commit between the pull and the
merge
i keep thinking it should be easy to write an expect script to
test for merge success and automating that, but i'm too new to
expect for it to be easy for me
sc
runtime/doc/tags is one of my "local changes" to .hgignore, so if and
when it is changed remotely (which "hg incoming" warns me about) I
answer d<Enter> when "hg fetch" (or "hg merge") asks me whether to use
remote version or leave deleted. ("make install" or "make
installruntime" rebuild it from scratch anyway, by running
vim -u NONE -esX -c "helptags ++t ." -c quit
[the "vimtags" target for runtime/doc/Makefile] at least on Linux where
I am.)
Testing for merge success: doesn't hg merge return $? == 0 (TRUE) iff it
succeeds? Or you could parse the output of "hg status" and/or "hg
summary" for uncommitted changes _before_ pulling. BTW "hg incoming"
returns 1 if there is nothing to be pulled so you could check that too.
Best regards,
Tony.
--
Alex Haley was adopted!
--
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