A
A
Alexey Zakharov2016-02-19 19:12:40
CVS
Alexey Zakharov, 2016-02-19 19:12:40

How to work with mercurial?

Hello, newbie, I'm learning to work with mercurial. There is a server with a site where mercurial is installed and a repository is created. I have ssh access to this server
Describe the approximate workflow, I'm downloading the repository to myself hg clone ssh:[email protected]:port
Making changes that go to the test server, comic, push? What's next? it is necessary to make an update from the console on the server basically? After the update, the changes are automatically applied to the files? Or will they need to be filled in?
Thanks for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-02-19
@konratnox

1) take the repository
hg clone <repository address>
2) work and edit the sources, commit them
hg commit
3) tag before uploading to the remote repository (for an amateur, like me)
hg push <repository address>
4) go to combat or test server and pick up updates or the entire repository
hg pull
or
hg clone
4.1) merge the sources (we are still on the test or production server)
hg update
Well, a very good article on the case - https://habrahabr.ru/post/108904/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question