Commit Graph

130 Commits

Author SHA1 Message Date
Vadim Gelfer
5de8501662 fix some things people wanted to be cleaner.
rename --map-file to --style.
no more -t alias for --template.
update docs.
rename template entry in map files to changelog.
if --verbose, use changelog_verbose if there, else changelog.
2006-03-04 12:40:10 -08:00
Vadim Gelfer
b5016aab02 let commands that show changesets use templates.
mechanism is same as hgweb templates.

old show_changeset code is still used for now if no template given,
because it is faster than template code when verbose or debug.

simple template can be given on command line using -t, --template.

example:

  hg log -t '{author|person}\n'

complex template can be put in template map file, given on command line
using --map-file.

we give two example map files:
map-log.compact prints 3 lines of output for every change.
map-log.verbose prints exact same output as default "hg log -v".

map files are searched where user says, then in template path as backup.

example:

  hg log --map-file map-log.compact

defaults can be set in hgrc with ui.logtemplate and ui.logmap.
2006-02-27 13:18:57 -08:00
Benoit Boissinot
1a125a9178 change the default timeout to 600 seconds 2006-02-21 23:50:53 +01:00
Benoit Boissinot
25acc6be22 add a timeout when a lock is held (default 1024 sec)
- change the wait keyword from lock.lock to timeout,
  a negative timeout of means "wait forever"
- refactor the two lock functions from localrepo.py
- make them use the timeout (default 1024, can be changed
  with ui.timeout in the config file
- update the doc
2006-02-21 23:21:15 +01:00
Vadim Gelfer
2945acbf40 add options to log man page. 2006-02-20 11:09:25 -08:00
Vadim Gelfer
250a3b7e9d add -l,--limit to log command. 2006-02-20 11:06:41 -08:00
Vadim Gelfer
b1dabd957f add --daemon option to serve command. for issue 45.
code looks odd because it is portable to windows. windows does not have
os.fork, so have to spawn and use pipe to tell parent ready instead.
2006-02-17 16:29:30 -08:00
Vadim Gelfer
d1f78f49f0 add preoutgoing and outgoing hooks.
preoutgoing lets prevent pull over http or ssh.
outgoing lets notify after pull.
2006-02-17 08:26:21 -08:00
Vadim Gelfer
b843092d88 tests for new hooks. fix things i found when writing tests. 2006-02-16 09:56:31 -08:00
Vadim Gelfer
e6a0476599 merge with crew. 2006-02-16 08:51:24 -08:00
Vadim Gelfer
31409d2048 fix names of parent changeset ids in hooks.
fix hook part of man page.
2006-02-16 08:48:31 -08:00
Vadim Gelfer
db9761a152 prefix hook env var names with HG_.
old names are still provided, but doc says they deprecated.
2006-02-16 08:40:47 -08:00
Vadim Gelfer
b208eaf201 add -p option to tip. for issue 64. 2006-02-15 11:05:43 -08:00
Vadim Gelfer
aa223c7048 add prechangegroup and pretxnchangegroup hooks.
prechangegroup lets you stop push, pull or unbundle before it begins.
pretxnchangegroup lets you inspect changegroup before transaction is
committed, and roll back if you not like it.
2006-02-15 10:49:30 -08:00
Vadim Gelfer
81d4eba8eb add -w and -p options to diff. this is for issue 126. 2006-02-15 10:39:47 -08:00
Vadim Gelfer
f15e0c4fd0 add pretxncommit hook.
hook allows check of changeset after create, but before transaction
is committed.  hook failure rolls transaction back.

makes place for local policies like commit message must contain bug id
or reviewer signoff.

change also adds parent changeset ids to commit hook environment,
because is cheap and useful.
2006-02-14 17:13:18 -08:00
Vadim Gelfer
554cbfdbf8 add pretag and tag hooks.
pretag hook lets hook decide how tags can be named.  tag hook is
notifier.
2006-02-14 15:47:25 -08:00
Vadim Gelfer
977a337f0c fix hgrc doc hook descriptions. 2006-02-11 00:31:52 -08:00
Thomas Arendsen Hein
5ac036946f Fall back to asciidoc6 html backend if html4 doesn't work.
This reenables building documentation on Debian sarge,
which broke after 95bbf2b4e4f9.
2006-02-03 10:54:58 +01:00
Matt Mackall
6f37e02b78 doc: clone and outgoing point to pull for valid path docs 2006-01-29 20:13:43 +13:00
Matt Mackall
7b07f944d2 deprecate the rawcommit command 2006-01-29 19:06:42 +13:00
Vadim Gelfer
951f815f9b document revert command more accurately.
this fixes issue 87.
2006-01-02 14:31:25 -08:00
Vadim Gelfer
c968155220 merge with crew 2005-12-11 15:38:42 -08:00
lupus@debian.org
465111ba8f Added --date option to annotate. 2005-11-09 13:39:24 -08:00
Vadim Gelfer
c9f1399932 make mercurial look in more places for config files.
now it searches <install dir>/etc/mercurial, /etc/mercurial, and user
hgrc.

this allows site-wide configuration to be shared over automounted nfs
partition, instead of chenging on every system.  option of having local
configuration on every system remains.

old code for searching /etc/mercurial/hgrc.d never worked, this code
is tested and works.
2005-11-04 11:51:01 -08:00
Hidetaka Iwai
23d610917a Fixed to convert to man properly. 2005-11-03 11:56:51 +09:00
Hidetaka Iwai
92b97ee314 Fixed wrong encoding of files. 2005-11-03 11:54:07 +09:00
Hidetaka Iwai ext:(%22)
f78c800103 Added Japanese translations of manpages. 2005-11-02 16:13:24 -08:00
Benoit Boissinot
6d70377b33 mention running multiple hooks in the doc 2005-10-31 10:47:27 -08:00
Matt Mackall
5b35150f96 Remove copy/rename --parents option
This is no longer needed now that we have more standard UNIX-like copy
semantics.
2005-10-26 16:32:50 -07:00
Eric Bloodworth
7242221f63 Change asciidoc backend to more recent name.
The latest asciidoc doesn't have an 'html' backend. 'html' was last valid
with version 6 ( 2005-1-28).  Current options are  xhtml11, or
html4, with xhtml11 by default.
2005-10-24 14:54:34 -07:00
Vincent Danjean
041288b787 Fix copyright symbol in docs
--- hg.orig/doc/hg.1.txt	2005-09-22 09:40:47.000000000 -0700
+++ hg/doc/hg.1.txt	2005-09-23 18:31:58.000000000 -0700
@@ -802,6 +802,6 @@ http://selenic.com/mailman/listinfo/merc

 COPYING
 -------
-Copyright (C) 2005 Matt Mackall.
+Copyright \(C) 2005 Matt Mackall.
 Free use of this software is granted under the terms of the GNU General
 Public License (GPL).
Index: hg/doc/hgmerge.1.txt
===================================================================
--- hg.orig/doc/hgmerge.1.txt	2005-06-30 10:19:51.000000000 -0700
+++ hg/doc/hgmerge.1.txt	2005-09-23 18:31:59.000000000 -0700
@@ -30,6 +30,6 @@ hg(1) - the command line interface to Me

 COPYING
 -------
-Copyright (C) 2005 Matt Mackall.
+Copyright \(C) 2005 Matt Mackall.
 Free use of this software is granted under the terms of the GNU General
 Public License (GPL).
2005-09-23 18:59:16 -07:00
mpm@selenic.com
49021bbf3c Hook fixups
Pass the first new changeset node to the changegroup hook
Call commit for each changeset in a pull changegroup
Improve hook docs
2005-09-22 10:12:42 -07:00
mpm@selenic.com
9282c26f18 Merge with TAH 2005-09-22 09:41:34 -07:00
Bryan O'Sullivan
3bd7c6fdcc Update hgrc documentation to refer to Windows paths. 2005-09-21 15:44:35 -07:00
Bryan O'Sullivan
ffb420798b Enhance the file filtering capabilities.
We now allow filtering through either pipes or pairs of temporary
files.  The latter appear to be mandatory for use on Windows.
2005-09-21 11:44:08 -07:00
Thomas Arendsen Hein
455a56454d Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
Bryan O'Sullivan
9b97ac29ea Add --pull option to clone. 2005-09-20 11:20:48 -07:00
Florian La Roche
6597085860 Fix man page typos 2005-09-18 14:06:36 -07:00
Bryan O'Sullivan
f0b627c75a Update doc for ssh URL, describing path handling more clearly. 2005-09-16 13:34:29 -07:00
mpm@selenic.com
eac251ef7c Add file encoding/decoding support 2005-09-15 02:59:16 -05:00
mpm@selenic.com
05e9c74f43 mark copy/rename as experimental in the docs 2005-09-15 00:49:40 -05:00
Bryan O'Sullivan
b6e3f2ae8c Switch cat command to use walk code.
The old syntax of "hg cat FILE REV" is now obsolete.
Use "hg cat -r REV FILE" instead, as for all other commands.
2005-09-14 21:57:41 -07:00
Bryan O'Sullivan
db7eec2670 Add rename/mv command.
This is the logical equivalent of copy and remove, and is in fact
implemented as such.  It doesn't use the remove command directly.
2005-09-14 16:34:22 -07:00
Bryan O'Sullivan
048d850eb8 Fix up copy command to behave more like regular "cp".
In addition to recording changes, copy now updates the working
directory.
2005-09-14 14:29:02 -07:00
Bryan O'Sullivan
33fe1a1d9e Make remove command really unlink files. 2005-09-14 10:50:03 -07:00
mpm@selenic.com
09d2a3f668 Add preliminary support for the bundle and unbundle commands 2005-09-08 01:27:25 -07:00
Thomas Arendsen Hein
7f7f7a2f22 Cleanup of tabs and trailing spaces in documentation. 2005-09-08 09:11:17 +02:00
mpm@selenic.com
8989165f6e Change grep -e to grep --all
We want to reserve -e for future use and grep compatibility.

I've changed every-match to all out of a general preference for
shorter long option names where short options don't exist.
2005-09-07 20:50:23 -07:00
mpm@selenic.com
913fee3381 Fold import -m option into import -f 2005-09-07 20:09:16 -07:00