Commit Graph

346 Commits

Author SHA1 Message Date
Bryan O'Sullivan
2e67ffebe5 Write out hgrc properly.
Previously, we simply appended to the hgrc file, which meant that it
ended up containing multiple "paths" sections.  Now, we only modify
"paths.default".
2005-09-04 15:47:59 -07:00
Bryan O'Sullivan
75cd295fec Commit date validation: more stringent checks, more useful error messages. 2005-09-04 14:47:02 -07:00
bos@serpentine.internal.keyresearch.com
13caea8fc2 Add doc string for debugrename. 2005-09-01 12:13:56 -07:00
bos@serpentine.internal.keyresearch.com
887d7f3fac Fortify the recognition of a diff header. 2005-09-01 09:35:42 -07:00
TK Soh
64dcff79fa Add -p to incoming and outgoing commands to show patch 2005-09-01 09:11:25 -07:00
bos@serpentine.internal.keyresearch.com
1c87d60be4 Revert changeset 0ba7f6134a4a2cbd767c5ec5cc497dbecf1b4e36.
I inadvertantly used "hg import" on a message I saved, expecting it to do
the right thing, but instead it made the commit look like I authored it,
and filled the description with the email header.

Changeset 238f05c9201ffe16c81e32a55d4d6b563cc9f605 contains a guard
against "hg import" doing this again.
2005-09-01 09:08:21 -07:00
bos@serpentine.internal.keyresearch.com
31ab427b7b Make import command reject patches that resemble email messages.
See changeset 0ba7f6134a4a2cbd767c5ec5cc497dbecf1b4e36 for an example
of why this is a good idea.
2005-09-01 09:04:18 -07:00
Bryan O'Sullivan
6881af8a23 Make removal check more complete and informative. 2005-09-01 08:01:10 -07:00
Bryan O'Sullivan
2442e85927 Fix up remove command to use walk code. 2005-09-01 07:48:14 -07:00
bos@serpentine.internal.keyresearch.com
5e8340bea1 From mercurial-bounces@selenic.com Thu Sep 1 07:01:32 2005
Return-Path: <mercurial-bounces@selenic.com>
X-Original-To: bos@serpentine.com
Delivered-To: bos@serpentine.com
Received: from waste.org (waste.org [216.27.176.166]) by
	demesne.serpentine.com (Postfix) with ESMTP id 3616A20B571 for
	<bos@serpentine.com>; Thu,  1 Sep 2005 07:01:32 -0700 (PDT)
Received: from waste.org (localhost [127.0.0.1]) by waste.org
	(8.13.4/8.13.4/Debian-3) with ESMTP id j81DxodQ028829; Thu, 1 Sep 2005
	08:59:51 -0500
Received: from web32904.mail.mud.yahoo.com (web32904.mail.mud.yahoo.com
	[68.142.206.51]) by waste.org (8.13.4/8.13.4/Debian-3) with SMTP id
	j81DxnNA028824 for <mercurial@selenic.com>; Thu, 1 Sep 2005 08:59:49 -0500
Received: (qmail 25859 invoked by uid 60001); 1 Sep 2005 13:59:17 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=O6sELrlCknW3M/gKVqijWs82e/CbDEum1sEitcuLKXaP9dHU175PszOqMgcSKykMY+BVXtcH3NeaXLM3FyBmqNkoPAvesezyFbgQsHSM1S028oOexybCKMvtGQJmz66hzd1fDb0QoPj1gCcGU2VDevQaOesSmo1xF9jJwy2LlLE=
	;
Message-ID: <20050901135917.25856.qmail@web32904.mail.mud.yahoo.com>
Received: from [60.48.222.94] by web32904.mail.mud.yahoo.com via HTTP; Thu,
	01 Sep 2005 06:59:17 PDT
Date: Thu, 1 Sep 2005 06:59:17 -0700 (PDT)
From: TK Soh <teekaysoh@yahoo.com>
To: mercurial@selenic.com
In-Reply-To: <20050828075808.GO27787@waste.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-Virus-Scanned: by amavisd-new
Subject: Re: add -p to hg tip
X-BeenThere: mercurial@selenic.com
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: mercurial.selenic.com
List-Unsubscribe: <http://selenic.com/mailman/listinfo/mercurial>,
	<mailto:mercurial-request@selenic.com?subject=unsubscribe>
List-Archive: <http://www.selenic.com/pipermail/mercurial>
List-Post: <mailto:mercurial@selenic.com>
List-Help: <mailto:mercurial-request@selenic.com?subject=help>
List-Subscribe: <http://selenic.com/mailman/listinfo/mercurial>,
	<mailto:mercurial-request@selenic.com?subject=subscribe>
Sender: mercurial-bounces@selenic.com
Errors-To: mercurial-bounces@selenic.com
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on
	demesne.serpentine.com
X-Spam-Level:
X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham
	 version=3.0.4
X-Evolution-Source: imap://bos@www.serpentine.com/
Content-Transfer-Encoding: 8bit
2005-09-01 07:47:26 -07:00
Bryan O'Sullivan
1f4f73a2eb hg serve: print a more useful error message if server can't start. 2005-08-31 11:19:20 -07:00
bos@serpentine.internal.keyresearch.com
d8c746ea08 Merge with TAH. 2005-08-29 10:31:41 -07:00
bos@serpentine.internal.keyresearch.com
d630ed8e52 grep: extend functionality, add man page entry, add unit test.
walkchangerevs now returns a two-tuple.  Its behaviour is also
extensively commented.
The annotate command's getname function has been factored out to a new
function, trimname, so it can be shared between annotate and grep.
The behaviour of grep has been beefed up, so that it now performs a
number of useful functions.
2005-08-29 10:05:49 -07:00
Bryan O'Sullivan
48cf3ef5aa grep: change default to printing first matching rev.
Printing of every matching rev remains via --every-match/-e switch.
2005-08-29 08:24:06 -07:00
Thomas Arendsen Hein
c07446d134 Create [web] section with short username as contact on hg init and hg clone. 2005-08-28 18:27:24 +02:00
Thomas Arendsen Hein
9129755767 Move generating short username to display in hg/hgweb annotate to ui module. 2005-08-28 17:29:28 +02:00
Thomas Arendsen Hein
ec28c4eea8 Changed printing of copies in hg debugstate to: "copy: source -> dest" 2005-08-28 16:24:04 +02:00
mpm@selenic.com
2b4a95a639 Add some rename debugging support 2005-08-27 20:58:53 -07:00
Stephen Darnell
95591d60c6 Remove the lock file copied during clone (was the source lock file)
Index: hg/mercurial/commands.py
===================================================================
2005-08-27 19:15:02 -07:00
TK Soh
50787ba429 Updated manpage and help.
Updated manpage on change to hg status; standardized description
of -print0 options.
2005-08-27 18:55:14 -07:00
mpm@selenic.com
0c4bb9fabe Merge with TAH 2005-08-27 17:26:26 -07:00
mpm@selenic.com
13cd5a12bb commands: use revlog directly for debug commands
This eliminates the import in hg.py
2005-08-27 14:56:58 -07:00
mpm@selenic.com
5b21e977a3 commands: use node functions directly 2005-08-27 14:55:07 -07:00
Thomas Arendsen Hein
9aba3494a6 Remove some options from 'hg grep':
-Z (we have -0 as in locate)
-a (use "-r 0:tip" instead, or always grep all unless -r is given)
-e (we have the PATTERN argument)
-v (doesn't work, and this is more of a job for 'hg cat|grep')
-s (we have -q/--quiet)
-f (should be always enabled if -l used, or enable on -v/--verbose)
2005-08-27 23:36:25 +02:00
mpm@selenic.com
06162e7dd0 Move opener to utils
- move the opener code down to util
- add docstring
- change commands.py users to simply use file instead
2005-08-27 14:31:41 -07:00
Thomas Arendsen Hein
eb5875fdb6 Whitespace cleanup. 2005-08-27 23:25:55 +02:00
Thomas Arendsen Hein
8f913949cc Replaced hg status -p/--strip with -n/--no-status to not confuse with patch. 2005-08-27 23:23:32 +02:00
TK Soh
1485d9e74e status: added option -p and -0 to assist xargs
The -p option strips the status prefix of each file, while
-0 ends each file with a NUL character, instead of a newline.
Together, selected group of files can be passed to 'xargs -0'
for further processing.
2005-08-27 01:49:41 -07:00
mpm@selenic.com
6737d1c923 Change canonpath to not know about repo objects
Code in util should not have any knowledge about repo objects
2005-08-26 23:29:10 -07:00
mason@suse.com
777af4d76b Add support for extension modules
This adds support for an [extensions] section to hgrc.  This has the form of:

[extensions]
mod=[path]

If a path is specified, the python module found at that path is load.
Otherwise, __import__ is used to find the module.

Each module must implement a dict called cmdtable where the command line
options for that module live.  Each module must also implement a reposetup
function:

cmdtable = {}
def reposetup(ui, repo): pass

Index: hg/mercurial/ui.py
===================================================================
2005-08-26 14:05:52 -07:00
Thomas Arendsen Hein
1706e2bc80 Fixed synopsis for grep command. 2005-08-26 16:47:09 +02:00
Thomas Arendsen Hein
c89b327937 Fixed zero-padded filenames with %r if there is a longer number in the middle.
e.g. with: hg export -o ../%r.patch 99 100 98
2005-08-26 16:37:28 +02:00
Thomas Arendsen Hein
c5a48bb80d Shortened commands.revrange() a little bit, added docstring. 2005-08-26 15:26:44 +02:00
Thomas Arendsen Hein
2aa584e2ac Cleanups to commands.py 2005-08-26 15:19:18 +02:00
benoit.boissinot@ens-lyon.fr
95b97f01ed pep-0008 cleanup
- Don't use spaces around the '=' sign when used to indicate a
      keyword argument or a default parameter value.
2005-08-26 13:06:58 +02:00
mpm@selenic.com
465baef81d Fix set type usage for Python 2.3 2005-08-26 02:03:35 -07:00
mpm@selenic.com
69642fabd6 Merge from BOS, fix help 2005-08-26 01:56:49 -07:00
Thomas Arendsen Hein
bf676d665b Fixed some synopsises in command help. 2005-08-26 10:39:43 +02:00
Thomas Arendsen Hein
3479af31cc Added missing doc strings for two new debug commmands. 2005-08-26 10:01:55 +02:00
Thomas Arendsen Hein
21bd77e72f Adjust display and alignment of command options to match global options. 2005-08-26 09:56:33 +02:00
Thomas Arendsen Hein
bef61f31d7 Clean up displaying help of global options, only one row per option. 2005-08-26 09:15:04 +02:00
Thomas Arendsen Hein
70862c3288 Moved --cwd handling to a place where ui and exception handling already exists. 2005-08-26 08:47:43 +02:00
Thomas Arendsen Hein
4c1fa6e67e Allow --help and --version being used together. 2005-08-26 08:42:56 +02:00
Thomas Arendsen Hein
7fd11ee46b Added options -h/--help. 2005-08-26 08:37:41 +02:00
Thomas Arendsen Hein
9d33a5e819 Moved special handling of --version and no hg command from parse to dispatch.
This allows e.g. 'hg status --version' to work.
2005-08-26 08:26:21 +02:00
bos@serpentine.internal.keyresearch.com
9f78835764 grep: speed up matching, and only return one match per line. 2005-08-25 17:13:48 -07:00
Bryan O'Sullivan
7cbf1e0fee Use ui.write instead of print in debugwalk. 2005-08-25 10:11:54 -07:00
Thomas Arendsen Hein
bc14f61be2 Sort global options by topic: directories, ui, timing, other
(and changed indentation to match command table)
2005-08-25 18:35:35 +02:00
Thomas Arendsen Hein
d5c16ece15 Removed forgotten debug print statement from commands.py and tests. 2005-08-25 16:00:08 +02:00
Bryan O'Sullivan
38e580170d Add grep command.
It currently searches all revs of every matching file.  I'll change
this soon so that it can still do this, but it will not be the default
behaviour.
Many options are unimplemented.  There's only one output mode.  Binary
files are not handled yet.
2005-08-25 02:00:03 -07:00