Commit Graph

1046 Commits

Author SHA1 Message Date
TK Soh
95e061dc0b close .hg/hgrc after writing the default values on clone
this fix a bug where Dircleanup did not work because
the file was still open
2005-11-15 20:35:10 +01:00
Benoit Boissinot
f7ef42efdd close file before renaming it (since it doesn't work the other way on windows) 2005-11-14 21:47:07 +01:00
Benoit Boissinot
f529012569 fix errors found by pychecker 2005-11-14 16:10:59 +01:00
Thomas Arendsen Hein
7330b2ccb4 Merge with Thomas Waldmann 2005-11-14 15:09:34 +01:00
twaldmann@thinkmo.de
bcc2a91159 made C src formatting more consistent 2005-11-14 04:58:28 +02:00
twaldmann@thinkmo.de
55d74a6b77 fixed some stuff pychecker shows, marked unclear/wrong stuff with XXX 2005-11-14 03:59:35 +02:00
twaldmann@thinkmo.de
584aa09dd6 minor optimization: save some string trash 2005-11-14 02:30:19 +02:00
Thomas Arendsen Hein
3ff696cdd6 Merge with upstream 2005-11-13 02:08:39 +01:00
mason@suse.com
bde403a04f Add revlog.strip to truncate away revisions.
This updates the revlog data structures for index and nodemap in place
so the .d and .i files don't need to be reread after stripping away a revision.
2005-11-11 18:20:24 -08:00
mason@suse.com
5bb76dbbf2 Optimize manifest.add
Testing shows that manifest.add is spending a significant percentage of
its time running calcoffsets and doing text = "".join(addlist).  This
patch removes the need for both of these by storying the manifest in a
character array, and using a modified bisect search to find lines without
the help of a separate index of line offsets.

manifest.add was also reworked to push delta construction/combination into the
main loop.

Time to apply 2751 patches (without psyco, ext3 noatime,data=writeback):

Stock hg: 4m45s real 3m32s user 55s sys
patched:  2m48s real 1m53s user 43s sys
quilt:    2m30s real   45s user 50s sys

(quilt does much more io...)
2005-11-11 18:20:22 -08:00
mason@suse.com
4813e5d3d3 Reduce string duplication in compression code
This cuts down on string copies and allows buffers (instead of strings)
to be passed into the compression code
2005-11-11 18:20:19 -08:00
Benoit Boissinot
020e8bd8d1 reset mtime when two files are equal 2005-11-11 15:34:17 -08:00
Benoit Boissinot
83d7edd148 add localrepo.wlock for protecting the dirstate
- add localrepo.wlock
- nest it in localrepo.lock
- protect the code that change the dirstate
2005-11-11 15:34:13 -08:00
Benoit Boissinot
956119e446 add a releasefn keyword to lock.lock
releasefn is a function that will be executed when the lock is released
2005-11-11 15:34:09 -08:00
Benoit Boissinot
0406904c8d add dirstate.lazyread, write atomically the dirstate
- add a dirstate.lazyread function that read only if it wasn't read before and
  update all callers
- use the atomic keyword from util.opener to atomically write the dirstate
mercurial/dirstate.py
2005-11-11 15:34:06 -08:00
Benoit Boissinot
4aae3736a7 add an atomic argument to util.opener
when atomic is used, the file while be renamed on close
2005-11-11 15:33:59 -08:00
Benoit Boissinot
0bb141c937 don't print anything about file of unsupported type unless
the file was specified on the command line
2005-11-11 15:33:08 -08:00
TK Soh
29875c1060 fix a bug where command defaults suppress global options 2005-11-11 15:32:28 -08:00
Thomas Arendsen Hein
69c45476eb Catch the exception raised with 'hg help <somethingambiguous>'.
Example: 'hg help a'
2005-11-10 16:16:28 +01:00
Matt Mackall
81ba9dc743 Merge with TAH 2005-11-09 13:42:16 -08:00
TK Soh
bc8aa01aab hgweb: fix traceback by skipping invalid repo paths 2005-11-09 13:40:08 -08:00
Matt Mackall
8ee3ad4698 Fix line wrapping 2005-11-09 13:39:56 -08:00
lupus@debian.org
465111ba8f Added --date option to annotate. 2005-11-09 13:39:24 -08:00
Benoit Boissinot
8a08aa0106 copy the mode of the file when breaking hardlinks 2005-11-09 13:38:46 -08:00
Thomas Arendsen Hein
de8a884906 Allow ambiguous command shortcut if only an alias for the same command.
Currently the only example for this is 'hg o' or 'hg ou' as a shortcut for
'hg out' and 'hg outgoing'.
2005-11-09 22:31:18 +01:00
Matt Mackall
fe9489ea3f Merge with TAH 2005-11-09 12:52:05 -08:00
Matt Mackall
c6c27e35b8 Automatically run "verify" whenever we run "recover" 2005-11-08 14:22:03 -08:00
Robin Farine
8870c8c85a avoid to copy more than one file to the same destination file 2005-11-08 10:35:13 -08:00
Robin Farine
af91f5f15b copy & rename don't overwrite unless --force is specified 2005-11-08 10:35:09 -08:00
Robin Farine
7eb6f65c8b generalize copy/rename to handle more than one source directory 2005-11-08 10:35:05 -08:00
TK Soh
aed1cbf84d hgweb: remove redundant rstrip filter 2005-11-08 10:35:00 -08:00
Benoit Boissinot
b39fbd5ced use self.{w,}join when possible 2005-11-08 10:34:50 -08:00
Matt Mackall
20d2456786 Add safety check for addgroup 2005-11-07 15:40:24 -08:00
Thomas Arendsen Hein
14bb9c9e0b Improved error message for ambiguous command shortcuts. 2005-11-07 19:00:51 +01:00
Thomas Arendsen Hein
b0514d9b81 Canonicalize command when using aliases or prefix matching.
This makes the norepo check and the help and version command work when not
using the canonical name.
2005-11-07 18:39:25 +01:00
Matt Mackall
52f172b223 Add explicit 'st' alias for status 2005-11-04 10:24:05 -08:00
Benoit Boissinot
b9ebe9b071 if unambigious command name are passed, use them 2005-11-04 10:22:03 -08:00
Radoslaw Szkodzinski
eb7fc4b296 Add support for -r option in hg tag 2005-11-03 17:19:59 -08:00
Christian Boos
739a723556 fix file opening for some commands on Windows
Using file as opener in debug commands won't work on Windows, as the
index and data files needs to be opened in binary mode.
2005-11-03 14:24:07 -08:00
Thomas Arendsen Hein
fe54904242 hgweb: Added archive download buttons to manifest page. 2005-11-03 18:45:27 +01:00
Benoit Boissinot
e02b8021b3 remove the deprecated --text (t) option to rawcommit and tag 2005-11-03 00:43:05 -08:00
Matt Mackall
0436a5334f Deal with merge abort more gracefully
We save parent info last rather than first.
2005-11-02 20:22:29 -08:00
Matt Mackall
9e0ab220a0 Handle empty logs in repo.checksize 2005-11-02 20:09:19 -08:00
Matt Mackall
cb02ba2358 verify: add check for mismatch of index and data length 2005-11-02 19:26:23 -08:00
Matt Mackall
fbaadd4678 Allow interrupting all parts of verify 2005-11-02 18:59:40 -08:00
Benoit Boissinot
9db56d4cdb fix a bug in dirstate.changes when cwd != repo.root
- use lstat instead of stat
- add a testcase (thanks to Johannes Hofmann)
2005-11-02 16:13:41 -08:00
Benoit Boissinot
807e4f7da6 minor doc fix 2005-11-02 16:13:34 -08:00
Benoit Boissinot
02edb6c65e only files in normal state should be marked as deleted
fix a traceback when you removed an added file
2005-11-02 16:08:48 -08:00
Benoit Boissinot
0bbf5d2b87 fix handling of files of unsupported type in the walk code
if a file was of unsupported type, it was considered as 'seen' while
walking. this way it was possible to have file in the dirstate not
yielded by the walk function.
2005-11-02 15:46:31 -08:00
Soh Tk-r28629
d46c7428a7 Fix traceback on bad system hgrc files 2005-10-31 09:57:54 -08:00