Commit Graph

530 Commits

Author SHA1 Message Date
Bryan O'Sullivan
39b21b4b72 Add locate command.
# HG changeset patch
# User Bryan O'Sullivan <bos@serpentine.com>
# Node ID ebf5eba347a17a5c09000b3342caf350cd060a1b
# Parent  4309b0a5a6010dd2e5811b77d2bc29a51acf290f
Add locate command.

Used for finding files with names that match specific patterns,
such as "*.c".

This patch also introduces localrepository.getcwd, which returns the
current directory relative to the repository root.
2005-07-05 18:19:01 -08:00
Alecs King
943d295ac7 On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote:
# HG changeset patch
# User Alecs King <alecsk@gmail.com>

On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote:
> On Sun, Jul 03, 2005 at 12:49:27AM +0800, Alecs King wrote:
> > Hg is really very nice.  The only feature i miss from git is the
> > whatchanged -p, which shows a diff along with a changeset.
> > python before, i just dig into the mercurial/commands.py a while and
> > see what diff(), dodiff(), export(), show_changeset(), log() would
> > normally do.  There might be one thing or two missed or wrong.  But here
> > it is: a '-d' option to 'hg log' showing the diff info.  You can use 'hg
> > log -d' to show the whole history with the diff or 'hg log -d <file>' to
> > show that info of a particular file.  And also works with the '-r'
> > option.
>
> Let's use -p. We're going to be combining the global and per command
> switch namespace shortly and the global -p will disappear.

Okay. '-d' changed to '-p'. Just like 'whatchanged -p', now we have
'hg log -p'.

> Also, the argument list for show_changeset is getting a bit unwieldy.

This time i remain show_changeset untouched at all.  Only changed some
bits of log().
2005-07-04 12:15:44 -08:00
Matt Mackall
c77de876fa Add username/merge/editor to .hgrc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add username/merge/editor to .hgrc

These take priority over the equivalent environment vars
Deprecate HGMERGE, HGUSER, and HGEDITOR in docs
Add ui section to docs
Remove undocumented HG_OPTS
Raise username code out of changelog class
Make tests ignore ~/.hgrc

manifest hash: d127ef02bc5266036b4c77a55319519e91bd475b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCyM5NywK+sNU5EO8RAuU7AJ9zKk1TFrJXHM04jOOJJeBSp8jlTgCeP+tr
qwGFd+WaNqTepZ0wun5g9Uc=
=QEBu
-----END PGP SIGNATURE-----
2005-07-03 21:51:09 -08:00
mpm@selenic.com
3bcfbdabb4 [PATCH] Fix thinko in "serve" man page entry.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Fix thinko in "serve" man page entry.

From: Bryan O'Sullivan <bos@serpentine.com>

manifest hash: 38873ef90d0a418810fe6bb9d4b8357b63e88cc3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCyMCZywK+sNU5EO8RAhKuAKCjqdqGs1OiU+urYjYGC+nVYFpIygCfd/UC
Ln4/JF5J87nN/bHPKKQ2uh4=
=wFAq
-----END PGP SIGNATURE-----
2005-07-03 20:52:41 -08:00
mpm@selenic.com
d0c0c29814 [PATCH] Get "hg serve" to optionally log accesses and errors to files
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Get "hg serve" to optionally log accesses and errors to files

From: Bryan O'Sullivan <bos@serpentine.com>

Get "hg serve" to log accesses and errors to files.

manifest hash: 573ef524d84cc7d2777f5fd982f2ef47f4bcf668
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCyMA5ywK+sNU5EO8RAp1eAJoD6Qqy6XcGInzZKdo0Qp7gLttYzACfRywL
fSGapmCAIaZPoBvoxXTk8Zo=
=ZicU
-----END PGP SIGNATURE-----
2005-07-03 20:51:05 -08:00
mpm@selenic.com
8ea28c59c4 Expand undo docs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Expand undo docs

manifest hash: 4381a35ef96ce10176dde3c9c6c2503f65ae8a09
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCyD93ywK+sNU5EO8RAianAJ97+hYOTwV3OvAAekcYn3f1Ahzf4ACeLjgz
kUAHrjSmhs2F421lXxbgCfw=
=gbg9
-----END PGP SIGNATURE-----
2005-07-03 11:41:43 -08:00
mpm@selenic.com
c7c6ca830d [PATCH] hg revert
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] hg revert

From: Bryan O'Sullivan <bos@serpentine.com>

Add revert command.

manifest hash: 0094e6bf421f34bd0492a33f95400b1b095a6bdc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCx2BaywK+sNU5EO8RAigMAKCrvgTtIDuirCsMVlbiTMqaJy3UNgCdEcTL
hMN1X8FZi6sH+NjUdr9sYBg=
=i58L
-----END PGP SIGNATURE-----
2005-07-02 19:49:46 -08:00
mpm@selenic.com
6d45cee266 [PATCH] New export patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] New export patch

From: Bryan O'Sullivan <bos@serpentine.com>

Modify export command to accept rev ranges and output file spec.

It can now export a range of revisions, and print exported patches
to files whose names are generated using format strings.

manifest hash: e0085c205cdc31a168bcd25c85772ef00d53031d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCx02iywK+sNU5EO8RAtCKAJ0V2K9+i1OGa27KyC5/nq3m+OdvtgCgpnav
3vfEODMzJVOZoJt9wzI1UCg=
=YAdI
-----END PGP SIGNATURE-----
2005-07-02 18:29:54 -08:00
Thomas Arendsen Hein
cadb8483cb Allow specifying revisions in 'hg log' like with 'hg diff'.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Allow specifying revisions in 'hg log' like with 'hg diff'.

manifest hash: 62d48dbaa0213b36f08dc15bc3b1a1f35ecd89f0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCxPbeW7P1GVgWeRoRApOgAJsFYCQ8EEpYDQz8t53bRXfrP/MXwwCfWDV5
dLv6zwG6/I++SyChFkTPfAY=
=cg0V
-----END PGP SIGNATURE-----
2005-07-01 08:55:10 +01:00
mpm@selenic.com
eeb242a6fb [PATCH] Force "hg clone" to always create a new directory
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Force "hg clone" to always create a new directory

From: Bryan O'Sullivan <bos@serpentine.com>

I just screwed myself by typing "hg clone foo" without specifying a
destination directory, and after I was done mopping up the mess,
concluded that this is a dangerous mode of operation that has no
practical value.

I've thus modified the clone command so that it always creates a
destination directory.  If none is specified, the destination is taken
as the basename of the source.

hg clone foo
        -> error, because foo already exists
hg clone http://www.selenic.com/hg
        -> new repo, named hg
hg clone ../bar
        -> new repo, named bar

manifest hash: f21ed8f805a60c1326d99220772e1574b0870d6c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwxsIywK+sNU5EO8RAgooAKC3IL6vKyADb9s2qqqi4GMw2Z7asACbBtE/
TvPgwGtIiB2GC+N+V7r1VpI=
=uTcK
-----END PGP SIGNATURE-----
2005-06-29 14:04:56 -08:00
mpm@selenic.com
4303665bb4 [PATCH] replace history with log
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] replace history with log

From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>

Merge hg history into hg log leaving the first as an alias

(tweaked by mpm: update docs, tests, use existing alias mechanism)

manifest hash: f85001a4373b8b823a6221ba5c506628059d6779
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwSr1ywK+sNU5EO8RAmbAAJ9HlFkf8/qLOAQUtj8CWxGRPEyzVgCgtXwP
SdnAg1a2q4693+TBiOjrimY=
=w9rf
-----END PGP SIGNATURE-----
2005-06-28 02:48:21 -08:00
mpm@selenic.com
da3a05e37d [PATCH] Fix "no-update" option to clone
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Fix "no-update" option to clone

From: Bryan O'Sullivan <bos@serpentine.com>

Turn "no-update" (invalid Python identifier) into "noupdate".

manifest hash: 1dfb3212b97531437d5a243813896c090a05d95a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwST1ywK+sNU5EO8RAvGnAJ9/RvohYRxpMTWkK6YCiF6r3U68FACeNRcr
mE/NYJzVbijiLK9TwWm8QgQ=
=w/KV
-----END PGP SIGNATURE-----
2005-06-28 02:22:45 -08:00
mpm@selenic.com
cd71fbe9aa Various doc clean-ups and spelling fixes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Various doc clean-ups and spelling fixes

manifest hash: 4115506709314aabfb4a66973ef2bc8f22f2225b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwQ5YywK+sNU5EO8RAkAlAJoCsXCgEQ1lmS58aSrUyPf+KIK99gCeLY/v
Tg9JhygJjwsu5xocc9Nh04Y=
=JTG4
-----END PGP SIGNATURE-----
2005-06-28 00:46:16 -08:00
mpm@selenic.com
9aa6f1e2f4 [PATCH] doc cleanups
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] doc cleanups

From: Pachi <pachi@mmn-arquitectos.com>

manifest hash: e6f721b21befe56fca36aac122b4e60755caafdb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwQMPywK+sNU5EO8RAsLuAJ0ezRwgJxAhTiC8S5svurQUvACYvQCcCCUS
1KjmG2VxQo2bgtu97I/AUEE=
=bI7g
-----END PGP SIGNATURE-----
2005-06-27 23:58:07 -08:00
mpm@selenic.com
d18e292a59 [PATCH] simplify init
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] simplify init

From: Bryan O'Sullivan <bos@serpentine.com>

Remove source directory option from "hg init".

manifest hash: 2ace7b16c962fb434340b937fbcd494f3098a85f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwQG/ywK+sNU5EO8RArbCAJ9DG45GepMI0Z9KWXqV8gmEbV1WfwCgotih
LGAkD8iTfOLn7HIPVqt9FWY=
=65uW
-----END PGP SIGNATURE-----
2005-06-27 23:52:31 -08:00
mpm@selenic.com
1bbff51e92 Add initial hook support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add initial hook support

This adds the basic hook code as well as pre and post-commit hooks.
Argument passing is by environment variable key/value pairs so that
extra data can be passed over time. File lists will generally not be
passed to hooks as these can be extremely long (>1M).

manifest hash: 45cf9bab432782c391bc9c1c048c84cc75d52740
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCwOukywK+sNU5EO8RAsVsAJ9QipR2aKRSSvoRNo+3If6JddUDkwCgkZrM
KEmZpUOxhNHqezFVrHDRTjE=
=aedm
-----END PGP SIGNATURE-----
2005-06-27 22:18:12 -08:00
mpm@selenic.com
4fb29605c3 [PATCH] add clone command
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] add clone command

Add clone command. Mark with-source version of "init" as deprecated.

manifest hash: 3c31263474977c3d8303f45f71c44f7b7e10e97e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCvzhOywK+sNU5EO8RAmh+AJwIlRfX143oxKShgPWF2dbDvCuH3gCbBrAW
isIHptwVRX8pcA0lU638pHo=
=ZoQy
-----END PGP SIGNATURE-----
2005-06-26 15:20:46 -08:00
Thomas Arendsen Hein
b32922b602 Update of doc/hg.1.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Update of doc/hg.1.txt
- - set date to release date of Mercurial 0.6
- - remove trailing spaces and other trivial changes
- - add 'hg root' and $HGEDITOR.
- - add another repository in the [paths] example

manifest hash: 873f058d10bf58c1e54381715c82c1d1aeeee1e9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCvqRXW7P1GVgWeRoRAv/NAKCeiaHsrnUFDdlMMRj1QhL4gKvi6gCgkAL4
QhH/bw/Gjs7R+9LHJW/chxs=
=G3kF
-----END PGP SIGNATURE-----
2005-06-26 13:49:27 +01:00
mpm@selenic.com
9869ab108b Add hgmerge manpage
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add hgmerge manpage

- From Vincent Danjean

manifest hash: db96fb3109a588052b21e49df81cfe65c98e72d7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCvQT2ywK+sNU5EO8RAmuFAJ0TFJ7K88OP/dMJVcFtD6Tiuon8SwCgl+W+
4NgyQCJKwgfGF6nEhqJkgck=
=Ymjz
-----END PGP SIGNATURE-----
2005-06-24 23:17:10 -08:00
mpm@selenic.com
1fd4329dca Add a doc makefile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add a doc makefile

- From Vincent Danjean

manifest hash: ef14a37f8bdee641148e705ba13ce386cf29316a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCvQSmywK+sNU5EO8RAh/QAJoCDQVUKS8uYO5kcIqJBsrKYtj+FACgmSvI
FnYSmWjUX5kLbDHdQqM6jls=
=fPAM
-----END PGP SIGNATURE-----
2005-06-24 23:15:50 -08:00
mpm@selenic.com
204282832a More FAQ bits.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

More FAQ bits.

manifest hash: dd8aa534d3e72aa33f4fd7270d3750cefc2c40a9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCu54aywK+sNU5EO8RAud5AJ4699rQiuiZ2TKdZzkG6iGU/UaG8wCgr4Jz
euPp7E7arLNoOYtzCbGCSks=
=l3sX
-----END PGP SIGNATURE-----
2005-06-23 21:46:02 -08:00
mpm@selenic.com
d6913afa29 More FAQ updates
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

More FAQ updates

manifest hash: 98447c3da5aefcc6c4071d03d8014944cf4cbb79
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCu3TCywK+sNU5EO8RArRjAJ0ZtMHztUL1cQw7FC0C3uJ0YIfKjwCfWfSe
JndrQxPs1QeCPK/RbfYiKjE=
=aMHP
-----END PGP SIGNATURE-----
2005-06-23 18:49:38 -08:00
mpm@selenic.com
ca8b1e1fb6 Clarify doc/README a bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Clarify doc/README a bit

manifest hash: db94c24344b56655bea5123ff79db75c7fa2d44c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCu2cHywK+sNU5EO8RAuh7AKCZu3ZyrLaCvwlUvc8yY49hNOr2FwCfeQ8w
Rpnt3GiIZ5PN01SwFt0B5jE=
=953M
-----END PGP SIGNATURE-----
2005-06-23 17:51:03 -08:00
mpm@selenic.com
ccea0e2895 Cleaned up some asciidoc bits in the FAQ
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cleaned up some asciidoc bits in the FAQ

manifest hash: d21d57210696587dbb6a30a711f77612ed20f40e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCuzPpywK+sNU5EO8RAm6JAJ4kgJKyU2v0e/TL3elPWt+8IiN+2wCeKwVa
iaJSNgsrzdNmNhhlzaQ267c=
=A8Xr
-----END PGP SIGNATURE-----
2005-06-23 14:12:57 -08:00
mpm@selenic.com
b6f360a0f2 The beginnings of a FAQ file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The beginnings of a FAQ file

manifest hash: 234ee7d9fb5cd3b0bd794e615a74f96a4cc234e0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCuy48ywK+sNU5EO8RAmdYAJ923bFC/a6q28nVYumWsaQ+axlKawCfS7IC
kh1xVlj5OYOloicyaHDhLU4=
=7CJ2
-----END PGP SIGNATURE-----
2005-06-23 13:48:44 -08:00
mpm@selenic.com
6869b242bc Update docs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Update docs

General editing of man page
 adding new commands, removing old, updating usage
Remove generated docs

manifest hash: 68e3fa38e8ec38e80debd95854e1374a9d24fbe0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCule6ywK+sNU5EO8RAm6SAJ0eQwB5eFG1WeswqNMRqUEclmMaNQCeMcYY
Y+UCHuN6vQ4PgEUKt91+rEo=
=PAAA
-----END PGP SIGNATURE-----
2005-06-22 22:33:30 -08:00
mpm@selenic.com
bb97db269e Transparent proxy support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Transparent proxy support

Originally from "Michael S. Tsirkin" <mst@mellanox.co.il>

manifest hash: 74cf7456ef35ff8d4c007544f0d1a57c69d3c929
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCrSIUywK+sNU5EO8RAje1AJ41ALW8soF78Mo3UTraV1QQvJoFSQCgrqvc
I9ohlI4hzdjOD+wSwRGlERQ=
=Ugfi
-----END PGP SIGNATURE-----
2005-06-12 22:05:08 -08:00
jake@edge2.net
ebfa981ca0 add export, recover, and undo to the man page
add export to hg help
2005-05-30 09:53:48 -07:00
jake@edge2.net
96e811557f updated for .hgpaths and http/old-http protocol name change 2005-05-27 14:09:43 -07:00
jake@edge2.net
ce9abb65f6 adding doc directory and files 2005-05-27 07:16:58 -07:00