N
N
nekufa2011-08-26 00:18:22
Command line
nekufa, 2011-08-26 00:18:22

hg console how?

Hello!
Faced with the fact that during development I keep the terminal window open to work with the version control system. I don't like writing before the hg command all the time. Is there a console that only expects mercurial commands?
The thing, it seems, is not complicated - I think that it has already been implemented. Can anyone come across?
I'll explain with an example. Let's say I'm fixing bug 172 in the production branch. Then I merge the changes into the current one.

hg pull<br/>
hg update production<br/>
...<br/>
hg commit -m 'fixed #172'<br/>
hg update default<br/>
hg merge production<br/>
hg commit -m 'merge'<br/>
hg push<br/>

I would like to have a console where I would perform the same actions like this:
pull<br/>
update production<br/>
...<br/>
commit -m 'fixed #172'<br/>
update default<br/>
merge production<br/>
commit -m 'merge'<br/>
push<br/>

Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sl_bug, 2011-08-26
@sl_bug

The first thing that comes to mind is to create aliases in .bashrc.

K
Kir ---, 2013-06-28
@SowingSadness

powershell and in *.ps1 in the home directory define functions with such names
(in order for Russian characters to be displayed normally, you need to change the font to Lacude Console)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question