Commit Graph

4765 Commits

Author SHA1 Message Date
Matt Mackall
32a69c4899 commitctx: replace two dirstate vars with working 2009-05-14 13:20:40 -05:00
Matt Mackall
f0bc29419d commitctx: simplify locking
(spotted by Simon Heimberg)
2009-05-14 13:20:40 -05:00
Matt Mackall
fa65ae0679 remove deprecated rawcommit 2009-05-14 13:20:40 -05:00
Matt Mackall
06f4d7f9fa patch: copy copies dict before changing it (issue1651) 2009-05-14 13:20:40 -05:00
Matt Mackall
cf4b3136aa status: check cmp list in order 2009-05-14 13:20:40 -05:00
Peter Arrenbrecht
35e8011b63 verify: detect manifest revs not in any changeset 2009-05-14 16:22:49 +02:00
Peter Arrenbrecht
87bb32e582 localrepo: use more direct vars in addchangegroup 2009-05-14 16:11:45 +02:00
Peter Arrenbrecht
c9505be494 localrepo: use cl throughout in addchangegroup 2009-05-14 16:09:27 +02:00
Peter Arrenbrecht
5851b0b382 revlog: slightly tune group() by not going rev->node->rev 2009-05-14 16:00:21 +02:00
Peter Arrenbrecht
a75765cf7f drop unused imports 2009-05-14 15:35:46 +02:00
Peter Arrenbrecht
3d9bf2f616 indentation cleanup 2009-05-14 15:24:36 +02:00
Dirkjan Ochtman
2f19dcd8ee merge: add -S/--show option to review revisions without merging 2009-05-14 16:03:17 +02:00
Simon Heimberg
df774ad0e5 context: replace pseudo-set by real set 2009-05-14 10:59:55 +02:00
Martin Geisler
db52139a34 byterange: fix import error
We must import the module as email.Utils on case-sensitive
filesystems.
2009-05-14 13:20:04 +02:00
Bryan O'Sullivan
1674afb927 hgwebdir: refresh configuration periodically
The old default behaviour of hgwebdir was to maintain a list of
repositories permanently. This interacted badly with persistent
application hosting software such as WSGI containers.  If a new repository
was published, it would potentially never appear in the top-level list
of repositories.

This change causes the hgwebdir configuration and list of repositories
served to be refreshed periodically (at most every 20 seconds).
2009-05-13 13:30:28 -07:00
Martin Geisler
4d0bbe44ba cmdutil: replace pseudo-set by real set 2009-05-12 01:08:28 +02:00
Dirkjan Ochtman
43d9564cff some modernization cleanups, forward compatibility 2009-05-13 14:08:39 +02:00
Henrik Stuart
f69c330ac1 windows: avoid deleting non-empty reparse points
If a hg repository including working directory is a reparse point (directory
symlinked or a junction point), then using os.removedirs will remove the
reparse point erroneously. This is fixed by only removing directories if they
are empty.
2009-05-12 15:50:44 +02:00
Henrik Stuart
ec8d726ba0 transaction: add atomic groups to transaction logic
When performing a strip operation on a repository, it is vital that all the
truncations are performed, or that none of them are. This is done by adding
support for writing a number of entries in a single operation.

Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-05-11 21:12:40 +02:00
Dirkjan Ochtman
6f7f8e3dec templater: make the templating engine pluggable to some extent 2009-05-12 12:05:19 +02:00
Dirkjan Ochtman
5c6c43b746 templater: provide the standard template filters by default 2009-05-12 12:04:05 +02:00
Dirkjan Ochtman
d939b28808 hgweb: trust config file passed into hgwebdir
Before this patch, hgwebdir suddenly showed up empty for a webdir-conf file
that was for some reason not trusted. This was previously not a problem because
the trust mechanism wasn't required for the very separate webdir-conf.
2009-05-12 10:57:55 +02:00
Dirkjan Ochtman
044ab8755d hgweb: use context api in branches webcommand 2009-05-12 10:23:45 +02:00
Sune Foldager
de66a009d3 webcommands: add 'branches' command, similar to 'tags' 2009-05-12 09:43:36 +02:00
Bryan O'Sullivan
ff0948b137 util.termwidth: a file-like object may legitimately lack a fileno() method
Spotted in the wild when running a hook while pushing over HTTPS.
2009-05-11 11:53:27 -07:00
Dirkjan Ochtman
1c646f503a hgweb: get rid of inaccurate hgwebdir.repos_sorted, localize machinery 2009-05-11 14:19:49 +02:00
Alexander Solovyov
038c7df455 hgwebdir: read --webdir-conf as actual configuration to ui (issue1586)
This cleans up code and allows specification of values more globally. For
example, it's now possible to specify web.contact in webdir-conf for all
repositories without a specified contact set.
2009-05-11 14:20:18 +02:00
Sune Foldager
3b6f32dcc9 url: fix bug in passwordmgr related to auth configuration
Usernames given as part of the URL would be ignored.
This bug was introduced in ff71c1e17a2ae6bd42d85685b412005cc1340c33
2009-05-11 07:55:13 +02:00
Martin Geisler
a46b13f8bb mail: updated comment 2009-05-08 15:14:04 +02:00
Martin Geisler
a9670d9567 util: remove unused bufsize argument in popen[23] 2009-05-09 17:34:11 +02:00
Martin Geisler
e8bc5f4f01 util: remove ignored mode argument in popen[23] 2009-05-09 17:32:57 +02:00
Martin Geisler
110a176288 copies: don't translate untranslatable string 2009-05-09 14:56:06 +02:00
Sune Foldager
4a665141b4 allow http authentication information to be specified in the configuration 2009-05-04 20:26:27 +02:00
Rocco Rutte
00891e0e67 patchbomb: quoted-printable encode overly long lines
RfC2822 mandates a line length limit of 998 byte + CRLF.
Python mail tools break lines at 990 byte. To prevent
that, we quoted-printable encode overly long lines.
2009-05-08 18:30:44 +02:00
Bryan O'Sullivan
3054118009 Windows: improve performance via buffered I/O
The posixfile_nt code hits the win32 file API directly, which
essentially amounts to performing a system call for every read and
write. This is slow.

We add a C extension that lets us use a Python file object instead,
but preserve our desired POSIX-like semantics (the ability to rename
or delete a file that is being accessed).

If the C extension is not available (e.g. in a VPS environment
without a compiler), we fall back to the posixfile_nt code.
2009-05-08 15:52:26 -07:00
Bryan O'Sullivan
25eaff219f win32: clarify comment regarding use of fdopen 2009-03-26 13:14:35 -07:00
Bryan O'Sullivan
3b57c5ca0f win32: allow catching of both pywintypes.error and WindowsError 2009-03-26 13:13:48 -07:00
Bryan O'Sullivan
64e91f0ca1 atomictempfile: delegate to posixfile instead of inheriting from it 2009-03-26 13:12:11 -07:00
Matt Mackall
c70b6084a7 revlog: add cache priming for reconstructing delta chains 2009-05-07 19:39:45 -05:00
Matt Mackall
7aa559f96a revlog: use chunk cache to avoid rereading when splitting inline files 2009-05-07 19:39:45 -05:00
Matt Mackall
d48241b5f7 revlog: clean up the chunk caching code 2009-05-07 19:39:45 -05:00
Matt Mackall
9f78d7798f revlog: use index to find index size 2009-05-07 19:39:45 -05:00
Matt Mackall
00548e0791 revlog: preread revlog .i file
Smaller revlogs can be read with a single read, do it on open.
2009-05-07 19:39:45 -05:00
Sverre Rabbelier
1c34b4064b commit: be more verbose in the -u help text
Make the requirement of an argument for -u a little more explicit.
2009-05-08 16:30:51 +02:00
Simon Heimberg
09ac1e6c92 separate import lines from mercurial and general python modules 2009-04-28 17:40:46 +02:00
Simon Heimberg
054906a1f5 dirstate: translate forgotten string 2009-05-08 07:54:00 +02:00
Simon Heimberg
f29f0db784 util: overwrite sha1 and _fastsha1 2009-05-08 09:59:15 +02:00
Martin Geisler
ca3bc4a9ab dispatch: remember loaded extensions in a real set 2009-05-07 17:56:57 +02:00
Martin Geisler
97b9a7a062 util: simplify pipefilter and avoid subprocess race
The subprocess module is not thread safe. Spawning a thread to read
the output leads to exceptions like this when Mercurial exits:

  Exception exceptions.TypeError: TypeError("'NoneType' object is not
  callable",) in <bound method Popen.__del__ of <subprocess.Popen
  object at 0x9ed0dcc>> ignored

The bug is already reported in the Python bug tracker:

  http://bugs.python.org/issue1731717
2009-05-07 01:33:44 +02:00
Matt Mackall
01454e7a1b util: kill unused Popen3 2009-05-04 14:22:33 -05:00