Commit Graph

858 Commits

Author SHA1 Message Date
mpm@selenic.com
38e347d953 hgweb: add mdiff / fix sorting of archives 2005-08-27 18:40:25 -07:00
mpm@selenic.com
0c4bb9fabe Merge with TAH 2005-08-27 17:26:26 -07:00
mpm@selenic.com
49950bfbc2 Fix dirstate imports 2005-08-27 16:42:03 -07:00
mpm@selenic.com
81de2b609e Fix sshrepo imports 2005-08-27 16:40:24 -07:00
mpm@selenic.com
e6e4ecb803 localrepo: minor opener usage restructuring 2005-08-27 16:34:54 -07:00
mpm@selenic.com
f1273ca2af Separate out old-http support
- create new statichttprepo class
- pull remote bits out of localrepo
- pull remote bits out of util.opener
- switch hg.repository to use statichttprepo
2005-08-27 16:28:53 -07:00
mpm@selenic.com
a40dc19739 localrepo: more import/namespace tidying 2005-08-27 15:35:37 -07:00
mpm@selenic.com
3af508f816 Minor import fixups 2005-08-27 15:19:36 -07:00
mpm@selenic.com
148eb9a38b manifest: convert sys.stderr bits to AssertionError 2005-08-27 15:13:52 -07:00
mpm@selenic.com
7e0f622206 localrepo: adjust some imports, remove sys dependency 2005-08-27 15:09:46 -07:00
mpm@selenic.com
5679905bd5 sshrepo: adjust file comment 2005-08-27 15:05:59 -07:00
mpm@selenic.com
665623c3ec changelog: adjust imports, comment 2005-08-27 15:05:43 -07:00
mpm@selenic.com
016db4f3e8 Adjust some imports 2005-08-27 14:59:25 -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
mpm@selenic.com
23905ee52b Move hash function back to revlog from node 2005-08-27 14:43:20 -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
mpm@selenic.com
e175fdde9b Break apart hg.py
- move the various parts of hg.py into their own files
- create node.py to store node manipulation functions
2005-08-27 14:21:25 -07:00
mpm@selenic.com
4ffffb3fc4 hgweb: add catch for connection reset
suggested by Jeff Sipek
2005-08-27 01:55:10 -07: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
e81f28aa33 Add some docstrings to revlog.py 2005-08-27 01:43:48 -07:00
mpm@selenic.com
8805469355 Update util.py docstrings, fix walk test 2005-08-27 01:13:28 -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
mpm@selenic.com
e243599beb Various cleanups for tarball support
s/tarball/archive/
query config rather than maintaining a list
default all archive support to off
use changeset nodes rather than manifest nodes
use web:name for archive name
don't use rev number in filename, it's not portable
refactor manifest lookup bits
use finally: clause to delete tmpfile
2005-08-26 20:52:31 -07:00
Wojciech Milkowski
3273ff69eb tarball support v0.3 pt 2 2005-08-26 20:51:48 -07:00
Wojciech Milkowski
340ba8e86e tarball support v0.3
Hello,

I'm slowly improving support for tarballs in Mercurial. Attached patch
is made against current tip in Matt's repository - c582763bc7fd, and
contains everything done so far.

Changes:
- gzip and bzip2 tarballs are sent immediately without writing to
temporary files (I was wrong Matt, it can be done very easy)
- hgrc customization, you can choose which type (if any) you will support

There's no easy way to support compression levels, since TarFile open()
assume that it is 9. I tried to use gzopen(), and bz2open() methods
instead, but it seems that headers of generated archives, are missing or
wrong. We could eventually try to rewrite tarfile.py and include our own
version into Mercurial, but I don't know if it's good idea...

Wojtek
2005-08-26 20:51:34 -07:00
Volker.Kleinfeld@gmx.de
b206d3baac Fixed system command abord reason on windows. 2005-08-26 19:20:04 -07:00
mason@suse.com
b0a4ba87ef Add revlog.reachable to find a graph of ancestors for a given rev 2005-08-26 19:19:35 -07:00
Bart Trojanowski
3529a29a40 [PATCH] raise exceptions with Exception subclasses
Fixed the patch.  Using Exception subclasses.

(tweaked by mpm)
2005-08-26 19:08:25 -07:00
mpm@selenic.com
14f5c433e1 Fixes for push corner case
TAH found a bug where push would push things the remote already had,
raising an assertion. This turned out to be because the changeset
protocol was not recording a common subset node in one case.

Also discovered was that the protocol was queueing multiple copies of
a node for pull. Fixed by changing fetch to a hash.

Add some more debugging output.
2005-08-26 16:49:23 -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
3c84fc273d Allow using a ssh repository without a path.
This uses the home directory on the remote side or the directory
specified in the command in .ssh/authorized_keys
2005-08-26 22:40:56 +02: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
Thomas Arendsen Hein
d28fa10d3f Some more spacing/indentation/linebreak cleanups to hgweb.py. 2005-08-26 13:29:52 +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
Bryan O'Sullivan
d845eb1c18 Map long option names containing dashes to ones containing underscores. 2005-08-24 22:25:55 -07: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
985163dd22 Show number of new heads when doing a pull 2005-08-24 18:42:42 -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
mpm@selenic.com
e3e20ae4fd Merge with BOS 2005-08-24 13:31:46 -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
22c1455510 Merge with MPM. 2005-08-24 12:50:11 -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
mpm@selenic.com
bf94ed815e Minor tweak to the revgen algorithm 2005-08-24 03:33:54 -07:00
mpm@selenic.com
7c92a626a7 Minor hgwebdir tweaks
- ignore / for PATH_INFO
- fix // in URLs
2005-08-24 03:32:08 -07:00
mpm@selenic.com
95f1940887 Create helper functions for I/O to files in the working directory
This simplifies some code and gives us a single place to add I/O
filters.
2005-08-24 00:32: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
def38223d0 Deal with repos with missing timezones 2005-08-23 16:19:14 -07:00
mpm@selenic.com
bfbf3abdb0 Fix callers to file.revision to use file.read
This was causing unchanged files to show up as modified.
2005-08-23 12:46:43 -07:00
mpm@selenic.com
b12dc2fafb Clean up some merge logic
- rename mode to branch_merge
- use explicit update mode
- use negative mtime for updates that set mtime
- expand some cryptic variable names
- elaborate merge dirstate comments
- remove redundant manifest lookup for non-merge case
- remove impossible merge case
- fix up test cases
2005-08-23 02:19:38 -07:00
mpm@selenic.com
094f0105d6 Fix up some bugs introduced by recent merge changes
- use new changed list to track what files actually got new revlog entries
  at commit/rawcommit time
- when updating a file during a merge, don't mark it as completely unchanged
- handle file not being in parent 1 in status
2005-08-22 01:22:29 -07:00
mpm@selenic.com
5ce035aafc merge: remove remaining mark bits 2005-08-21 22:03:36 -07:00
mpm@selenic.com
cf3b118558 Fix long-standing excessive file merges
Since switching to the multihead approach, we've been creating
excessive file-level merges where files are marked as merged with
their ancestors.

This explicitly checks at commit time whether the two parent versions
are linearly related, and if so, reduces the file check-in to a
non-merge. Then the file is compared against the remaining parent,
and, if equal, skips check-in of that file (as it's not changed).

Since we're not checking in all files that were different between
versions, we no longer need to mark so many files for merge. This
removes most of the 'm' state marking as well.

Finally, it is possible to do a tree-level merge with no file-level
changes. This will happen if one user changes file A and another
changes file B. Thus, if we have have two parents, we allow commit to
proceed even if there are no file-level changes.
2005-08-21 21:59:55 -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
731055ffd1 Add web:style option 2005-08-21 15:00:02 -07:00
mpm@selenic.com
ad6bff85ff Remove debug print 2005-08-21 11:52:52 -07:00
mpm@selenic.com
ac6c96ea43 Fix RSS feeds 2005-08-21 11:46:39 -07:00
mpm@selenic.com
386d6f39d6 hgweb: convert index entries to list expansion style 2005-08-20 13:11:36 -07:00
mpm@selenic.com
ba08a3d105 Merge with jeffpc 2005-08-20 13:08:07 -07:00
mpm@selenic.com
fe845586fa Deal with non-integer date offsets generated by some tools 2005-08-20 11:59:10 -07:00
mpm@selenic.com
a4548bef7f Remove call to non-existent date_parser 2005-08-20 01:35:45 -07:00
mpm@selenic.com
56f9aeaf2d Fix possible unitialized variable warnings 2005-08-20 01:29:04 -07:00
Samuel Tardieu
e3495dfc0a [PATCH] Take DST into account
Right now, mercurial doesn't take daylight saving time into account
because it uses time.timezone inconditionally, instead of resorting to
time.altzone if daylight saving time is on.
2005-08-19 23:26:32 -08: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
21802a4ed9 hgweb: Make maxfiles, maxchanges, and allowpull proper config options 2005-08-19 22:12:40 -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
8fe07a9a3f Add ui.setconfig overlay
This can simplify option passing
2005-08-19 21:25:25 -08:00
mpm@selenic.com
2a89b7bd1d Fix option parsing bug for empty short options 2005-08-19 18:56:20 -08:00
mpm@selenic.com
bc11f47499 hgweb: sort repository list 2005-08-19 17:22:04 -08:00
mpm@selenic.com
f0ae86293f Fix hgwebdir virtual start-up 2005-08-19 17:01:11 -08:00
mpm@selenic.com
ac03d564fb Remove -C alias for --cwd 2005-08-19 16:51:44 -08:00
mpm@selenic.com
8414ebc4a3 Merge with TAH 2005-08-19 16:45:25 -08:00
mpm@selenic.com
cd806d7dec Merge with BOS 2005-08-19 16:43:30 -08:00
mpm@selenic.com
e827a5700c Add a multi-repository server
This merges a bunch of the ideas for a multi-repository CGI script and
simplifies things a bit.

It uses PATH_INFO so it generally wants paths of the form:

http://host/hg.cgi/virtualpath

This gets mapped via a simple config file to the real path. All info
about the repo is read from the repo's hgrc.
2005-08-19 16:38:25 -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
Thomas Arendsen Hein
40a409ddd8 Read global config file /etc/mercurial/hgrc and fix reading hgrc on Windows. 2005-08-18 21:35:36 +01:00
Josef "Jeff" Sipek
29f76a06ac Merge with MPM 2005-08-17 22:59:47 -05:00
Josef "Jeff" Sipek
8d47ab93e3 hgweb: Changed manifest page to list format syntax 2005-08-17 22:32:47 -05:00
Josef "Jeff" Sipek
e93ee68c7d hgweb: Changed file revision page to list format syntax 2005-08-17 22:08:15 -05:00
Josef "Jeff" Sipek
648fbc401f hgweb: Changed annotate page to list format syntax 2005-08-17 22:03:28 -05:00
Josef "Jeff" Sipek
1fb176c855 hgweb: Changed file page to list format syntax 2005-08-17 21:59:02 -05:00
mpm@selenic.com
25858fcafc Add in and out aliases 2005-08-17 18:52:27 -08:00
Josef "Jeff" Sipek
2e63eb1703 hgweb: Changed changelog page to list format syntax 2005-08-17 21:45:44 -05:00
mpm@selenic.com
15214e2950 Fix stray debug statement 2005-08-17 18:41:04 -08:00
Josef "Jeff" Sipek
0977c5f04b Added support for #foo%bar# syntax
This required moving template() into the templater class
2005-08-17 21:14:20 -05: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
26b61451d6 Whitespace 2005-08-17 16:37:04 -08:00
mpm@selenic.com
8fd52eb092 Fix path handling for deleting files on merge 2005-08-17 00:36:36 -08:00
tksoh@users.sf.net
564f653a74 Fixed --repository option when handling relative path
When specifying relative path to --repository option, 'log' and
'diff' were unable to find the files specified. Here's the fix.
2005-08-17 00:33:53 -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
mpm@selenic.com
4eed373ac4 Add a local() method to repository classes 2005-08-16 19:17:01 -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
5bcea47997 Add basic https support for pull 2005-08-16 17:12:25 -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
8ff3edc761 whitespace cleanup 2005-08-16 15:30: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
mark.williamson@cl.cam.ac.uk
37633695b1 Minor tweak: os.STOPSIG -> os.WSTOPSIG. Pychecker spotted this one. 2005-08-15 11:46:41 -08:00
Thomas Arendsen Hein
6abcd01c6a Fix .hgignore parsing if last line has no EOL, ignore trailing white space.
(and don't use tabs in python code)
2005-08-15 08:08:11 +01: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
mason@suse.com
5784da7ba8 Allow the changegroup generator to completely load the buffer.
This makes is possible to delete or truncate away revisions and still
use the changegroup later.
2005-08-14 20:09:21 -08:00
mason@suse.com
66f2574257 Add optional stop revision to revlog.heads 2005-08-14 20:09:09 -08:00
mason@suse.com
7c05a98feb Change repo.comit to return None on error or the new revision number on
success

This allows the caller to correctly record the new revision number
2005-08-14 20:09:01 -08:00
mason@suse.com
9e36a1edf3 Add force option to repo.commit, allowing commits where no files change 2005-08-14 20:08:35 -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
mpm@selenic.com
979a3bb825 Fix bug with empty inc and exc
This fixes an exception that showed up when importing patches
2005-08-14 12:23:36 -08:00
mpm@selenic.com
aeee958e99 Merge with BOS 2005-08-13 19:43:42 -08:00
Bryan O'Sullivan
1486c1162f Merge with TAH. 2005-08-13 15:23:06 -08:00