Commit Graph

305 Commits

Author SHA1 Message Date
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
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
mpm@selenic.com
f42e0684d8 Fix a couple fencepost errors in hg log 2005-08-24 19:16:45 -07:00
mpm@selenic.com
d16fb02700 Fix hg log -p 2005-08-24 18:45:49 -07:00
mpm@selenic.com
64a0be3cd1 Add debugdata for dumping revlog revision data 2005-08-24 18:40:17 -07:00
bos@serpentine.internal.keyresearch.com
ee1e8ec6e8 Fix a small corner of log behaviour.
If invoked with no arguments in a subdirectory of the repo root, it
should print the history of the repository as a whole.
2005-08-24 14:45:35 -07:00
Bryan O'Sullivan
ad065b010b Fix help output, and a few broken tests. 2005-08-24 13:26:45 -07:00
Bryan O'Sullivan
8b3b079822 Rewrite log command. New version is faster and more featureful.
The original implementation of log walked backwards through history,
which had terrible behaviour.  It took several minutes to view
complete kernel change history on a fast machine, for example.
The rewrite uses a windowed approach to walk hunks of history
forwards, while still giving results in reverse order.  This reduces
run time from five minutes to five seconds on my system.
In addition, the rewrite uses our normal name handling mechanisms, so
you can run a command like "hg log net/ipv4/**.c" and get a useful
answer.  It optimises for three different cases (no arguments, only
files, and anything goes), so it performs well in all circumstances
I've tested.
2005-08-24 12:39:10 -07:00
Bryan O'Sullivan
7fa8c45c98 Merge with MPM. 2005-08-23 21:57:22 -07:00
Bryan O'Sullivan
c575ae97dc Add commands.debugconfig.
This lets us both view the actual config data that hg is using, and
drive editors that need to see this information.
2005-08-23 21:30:12 -07:00
mpm@selenic.com
599d52df20 Teach annotate about binary files 2005-08-23 20:21:52 -07:00
mpm@selenic.com
af3be1f6a1 Add automatic binary file detection to diff and export
Based on a patch by Fuming Wang

- add util.binary which decides whether a file is binary if it has any NUL
  characters in the first 1K.
- teach mdiff.unidiff to print "binary file <x> has changed" for binary files
- add text flag to cause unidiff and dodiff to treat all files as text
- add -a and --text flags (like diff(1)) to hg diff and export
- update docs
2005-08-23 19:58:46 -07:00
mpm@selenic.com
93fd21d2e9 Clean up argument passing for dodiff 2005-08-23 18:58:26 -07:00
mpm@selenic.com
1602510827 Reformat debugindex output 2005-08-21 16:51:50 -07:00
mpm@selenic.com
184b369f94 Remove unused relfilter function 2005-08-21 16:00:07 -07:00
mpm@selenic.com
8bb9bacafa hgweb: change startup argument processing
- allow passing a repo object instead of a path
  (if we get a string, we construct a repo object)
- hg serve: pass options via repo.ui.setconfig
- add --style option
- get default name from repo.root rather than getcwd()
- remove template argument to hgweb()
- reduce create_server from 8 args to 1
2005-08-21 15:56:14 -07:00
mpm@selenic.com
fe845586fa Deal with non-integer date offsets generated by some tools 2005-08-20 11:59:10 -07:00
Samuel Tardieu
c5def6fc1c [PATCH] Print timezone offset when outputting dates
Example:

% hg log | head -12
changeset:   791:41440890e57d2dbacde03a2a114e5114a031ea4a
tag:         tip
user:        Samuel Tardieu <sam@rfc1149.net>
date:        Mon Jul 25 13:24:15 2005 +0200
summary:     Parse various date formats when accepting user specified dates
[...]
changeset:   787:ba5c2021364ee876dae170e8f153e43bd0b2bd73
parent:      785:31a80e3723cee0a5991340facb2707e71983eb41
user:        Bryan O'Sullivan <bos@serpentine.com>
date:        Sun Jul 24 00:39:24 2005 -0800
summary:     Get "forget" command to use new walk code.
[...]
2005-08-19 23:23:42 -08:00
mpm@selenic.com
e10b86b086 hg import: abort with uncommitted changes, override with --force 2005-08-19 23:07:31 -08:00
mpm@selenic.com
90c7a47a36 Use post-expanded clone pathname as default 2005-08-19 22:48:43 -08:00
mpm@selenic.com
911bc32c5f Add -e and --remotecmd for clone and pull too 2005-08-19 22:11:48 -08:00
mpm@selenic.com
93c3566358 Add --ssh and --remotecmd to push
This uses the new setconfig options passing mechanism
2005-08-19 21:36:57 -08:00
mpm@selenic.com
ac03d564fb Remove -C alias for --cwd 2005-08-19 16:51:44 -08:00
Bryan O'Sullivan
c797ab8658 Add --cwd global option, to change directory before doing anything.
Useful for interacting with a program presenting a UI, such as Emacs.
2005-08-18 14:58:14 -08:00
Bryan O'Sullivan
642b56abc3 Modify commands.walk to yield a 4-tuple.
The new element of the tuple indicates whether a name is an exact match
for one passed in on the command line.
2005-08-18 13:58:32 -08:00
mpm@selenic.com
25858fcafc Add in and out aliases 2005-08-17 18:52:27 -08:00
mpm@selenic.com
211f1e3677 hgweb: add [web] section to hgrc
This makes almost all of the hgweb settings available in hgrc.
2005-08-17 17:57:37 -08:00
mpm@selenic.com
aa0aad3e1a Fix incoming for empty set 2005-08-16 22:47:49 -08:00
mpm@selenic.com
6a1eb4d99f hg incoming/outgoing: fix tests and update man page 2005-08-16 19:27:46 -08:00
mpm@selenic.com
6cfb06746f Add hg incoming command for local repositories 2005-08-16 19:17:16 -08:00
TK Soh
1e0fd1d4ba updated help text and added manpage section for hg paths
Index: hg/doc/hg.1.txt
===================================================================
2005-08-16 17:30:41 -08:00
mpm@selenic.com
ef0df55b06 show_changeset: -q shows short hash 2005-08-16 15:50:42 -08:00
mpm@selenic.com
39f134ded6 Add hg outgoing command 2005-08-16 15:49:26 -08:00
mpm@selenic.com
bc91e62ffa hg cat: accept changeset hashes 2005-08-16 15:22:44 -08:00
mpm@selenic.com
e7d0341a7b Fix hg clone race with writer
Most read operations in hg don't need locks because we order reads and
writes for consistency. Clone is an exception to this as we're copying
entire file histories and could end up with more file history copied
than we have commits.

For now, make clone take a lock on the source repo. Non-hardlinked
clone should eventually be changed to use lockless pull.
2005-08-16 14:53:47 -08:00
mpm@selenic.com
2616af791c Let hg paths work outside of repositories 2005-08-16 13:52:28 -08:00
TK Soh
c394d69d93 typo fix in command help text
This patch fixes a few typo errors on the command help output
(I am not sure if the change on 'diff' is the best though).
2005-08-16 10:42:30 -08:00
Bryan O'Sullivan
956772aca8 Modify init command to take an optional directory to set up.
If the directory does not exist, it is created.
If no directory is given, the current directory is used.
2005-08-14 21:33:09 -08:00
Thomas Arendsen Hein
21673adbf3 Update synopsis for 'hg update', too. 2005-08-15 06:18:49 +01:00
Thomas Arendsen Hein
122e907690 Update online help of hg heads for new --branches option. 2005-08-15 05:22:40 +01:00
mason@suse.com
038c62eda0 Add optional parameter for changed/added/del/unknown files to commands.dodiff
This makes it possible to avoid a call into repo.changes if the details
of what has changed is already known
2005-08-14 20:09:32 -08:00
mark.williamson@cl.cam.ac.uk
5f670f62e0 Add '-' support to the commit logfile option to read message from stdin. 2005-08-14 12:30:01 -08:00
mason@suse.com
914365e493 Add searching for named branches
named branching is when you identify a head by a tag on an earlier revision.
This patch adds repo.branchlookup for searching through the tree to
find branch tags for heads.

hg update -b tag is added to checkout based on branch tags
hg heads -b is added to print the tag associated with each head
2005-08-14 12:23:45 -08:00