Mercurial commit and merge -


with mercurial see scenario need gradually commit push, if person commits in middle of problem.

example: assume hg repo has 4 files a.txt, b.txt, c.txt, d.txt , have 2 users mickey , goofy:

mickey does:  $ echo "change1" >> a.txt mickey does:  $ echo "change2" >> b.txt mickey does:  $ echo "change3" >> c.txt mickey does:  $ hg commit -m "i good" a.txt goofy does:   $ hg pull -u; echo "change4" >> d.txt; hg commit -m "the donald change"  

mickey gets ready commit , push, has has merge: mickey does: $ hg pull -u

now mickey has 2 changes - in b.txt , c.txt. lets assume changes in c.txt complex , cannot released now. how can mickey changes in a.txt , b.txt committed , pushed without committing c.txt yet?

just issue filenames you're interested in committing:

hg commit a.txt b.txt -m'partial commit' 

then push usual.

edit: iyou try saving local changes patch, revert , pull remote changes, apply patch:

hg diff > local.patch hg revert hg pull -u patch -p1 < local.patch 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -