Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
bc3cadf5
Commit
bc3cadf5
authored
Jun 25, 2013
by
Robby Russell
Browse files
Merge pull request #1913 from chriskrycho/patch-2
Add more capable hg incoming and outgoing count handling
parents
b9baf377
f25e2d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/mercurial/mercurial.plugin.zsh
View file @
bc3cadf5
...
...
@@ -8,11 +8,9 @@ alias hgd='hg diff'
alias
hged
=
'hg diffmerge'
# pull and update
alias
hgi
=
'hg incoming'
alias
hgic
=
'hg incoming | grep "changeset" | wc -l'
alias
hgl
=
'hg pull -u'
alias
hglr
=
'hg pull --rebase'
alias
hgo
=
'hg outgoing'
alias
hgoc
=
'hg outgoing | grep '
changeset
' | wc -l'
alias
hgp
=
'hg push'
alias
hgs
=
'hg status'
# this is the 'git commit --amend' equivalent
...
...
@@ -55,3 +53,11 @@ function hg_dirty_choose {
function
hg_dirty
{
hg_dirty_choose
$ZSH_THEME_HG_PROMPT_DIRTY
$ZSH_THEME_HG_PROMPT_CLEAN
}
function
hgic
()
{
hg incoming
"
$@
"
|
grep
"changeset"
|
wc
-l
}
function
hgoc
()
{
hg outgoing
"
$@
"
|
grep
"changeset"
|
wc
-l
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment