Differences between revisions 6 and 85 (spanning 79 versions)
Revision 6 as of 2005-12-28 06:22:58
Size: 1642
Editor: NathanLynch
Comment: Add section on producing a diffstat after pulling
Revision 85 as of 2007-05-19 09:28:41
Size: 2380
Editor: 82
Comment: None
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
=== Make a clean copy of a source tree, like CVS export ===

{{{
hg clone source export
rm -rf export/.hg
}}}

=== The same thing, but for a tagged release ===

{{{
hg clone --noupdate source export-tagged
cd export-tagged
hg update mytag
rm -rf .hg
}}}

=== See diffs when editing commit message with VIM ===

Make a private copy of the 'hgeditor' script provided with mercurial and replace the call to the editor with following command:

{{{
vim "+e $HGTMP/diff" '+set buftype=help filetype=diff' "+vsplit $HGTMP/msg" || exit $?
}}}

This will start up VIM in vertical split mode with commit message in the left pane and diff in the right pane. The {{{buftype=help}}} setting for diff window tells vim to exit when all other windows are closed, so when you write and quit the log with {{{:x}}} ({{{:wq}}} - they are equivalent), vim exits. If you have syntax highlight set up, the diff will be properly highlighted.

This setting is suitable for wide terminals. If you have a narrow terminal, you may want to replace the {{{+vsplit}}} above with {{{+split}}} or add {{{nowrap}}} to the {{{+set}}}.

=== See diffstat of pulled changes ===

Place the following script (named "pull-diffstat" here) somewhere in your $PATH:

{{{
#!/bin/sh
test -n "$NODE" || exit 0
PARENT=`hg parents $NODE | head -1 | awk -F':' '{print $3}'`
echo "diffstat for $PARENT to $NODE"
hg diff -r $PARENT -r tip | diffstat
}}}

Add a changegroup entry to the [hooks] section of hgrc:

{{{
[hooks]
changegroup = pull-diffstat
}}}

Now you will see a diffstat of the new changes to your repo every time you do "hg pull".
Hi, good news for u specially, only here best proposition!!! Please visit my sites:
 [URL=http://marilyn.indstate.edu/~smitha/via/cheap-viagra/index.html]cheap-viagra[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/buying-viagra-online/index.html]buying-viagra-online[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/viagra-retail-discount/index.html]viagra-retail-discount[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/viagra-pharmacy/index.html]viagra-pharmacy[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/viagra-without-prescription/index.html]viagra-without-prescription[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/natural-viagra/index.html]natural-viagra[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/viagra-sample/index.html]viagra-sample[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/pfizer-viagra/index.html]pfizer-viagra[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/viagra-online/index.html]viagra-online[/URL] [URL=http://marilyn.indstate.edu/~smitha/via/lowest-viagra-price/index.html]lowest-viagra-price[/URL]
 <a href="http://marilyn.indstate.edu/~smitha/via/herbal-viagra/index.html">herbal-viagra</a> <a href="http://marilyn.indstate.edu/~smitha/via/viagra-alternative/index.html">viagra-alternative</a> <a href="http://marilyn.indstate.edu/~smitha/via/cialis-compare-levitra-viagra/index.html">cialis-compare-levitra-viagra</a> <a href="http://marilyn.indstate.edu/~smitha/via/get-viagra/index.html">get-viagra</a>
  http://marilyn.indstate.edu/~smitha/via/viagra/index.html http://marilyn.indstate.edu/~smitha/via/herbal-viagra/index.html http://marilyn.indstate.edu/~smitha/via/get-viagra/index.html http://marilyn.indstate.edu/~smitha/via/viagra-info/index.html http://marilyn.indstate.edu/~smitha/via/viagra-prescription-online/index.html http://marilyn.indstate.edu/~smitha/via/viagra-for-woman-information/index.html http://marilyn.indstate.edu/~smitha/via/discount-viagra-online/index.html http://marilyn.indstate.edu/~smitha/via/low-price-viagra/index.html http://marilyn.indstate.edu/~smitha/via/viagra-prescription-drug/index.html http://marilyn.indstate.edu/~smitha/via/viagra-prescription/index.html http://marilyn.indstate.edu/~smitha/via/buy-viagra-alternative/index.html http://marilyn.indstate.edu/~smitha/via/free-viagra-sample/index.html
Thanks!
----
CategoryNewFeatures

Hi, good news for u specially, only here best proposition!!! Please visit my sites:

Thanks!


CategoryNewFeatures

TipsAndTricks (last edited 2016-12-05 11:14:36 by ArneBab)