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
Sune Foldager
2f3ee06863
util.rename: use temporary file name for rename-targets on windows
...
Use a temporary file name as target for a forced rename on Windows. The
target file name is not opened at any time; just renamed into and then
unlinked. Using a temporary instead of a static name is necessary since
otherwise a hg crash can leave the file lying around, blocking future
attempts at renaming.
2009-04-29 09:30:28 +02:00
Matt Mackall
56cd5d40bb
Merge with crew-stable
2009-04-17 11:16:50 -05:00
Patrick Mezard
4764779700
context: fix workingctx.__contains__
2009-04-13 19:47:11 +02:00
Patrick Mezard
b41a06764a
httprepo: hide password in debug traces too
2009-04-13 14:33:47 +02:00
Steve Borho
7d99d0a5a5
hide passwords in httprepo error messages
2009-04-11 18:34:21 -05:00
Patrick Mezard
692471cd12
Fix manifest default rev doc when no rev is checked out (issue1603)
2009-04-10 13:00:28 +02:00
Benoit Boissinot
e5ea532970
raise RevlogError when parser can't parse the revlog index
...
Initial patch and test thanks to Nicolas Dumazet.
2009-04-06 19:48:11 +02:00
Simon Heimberg
5ebb56cc6d
error: import LockError from correct module
2009-03-31 07:56:28 +02:00
Brodie Rao
cb9a8632f9
hgweb: fix undefined name RepoError
2009-03-27 11:17:46 -04: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
Matt Mackall
ec94003cea
config: make remap actually work
2009-05-04 14:21:43 -05:00
Martin Geisler
8fdb40802d
util: stop overwriting sha1, overwrite _fastsha1 instead
...
Some modules (like revlog) would import util.sha1 as _sha1. This
defeats the purpose of having util.sha1 overwrite itself with a faster
version -- revlog would end up always calling the slow version. By
always delegating to util._fastsha1 we avoid this at the cost of an
extra (but unconditional) indirection.
2009-05-04 22:14:52 +02:00
Martin Geisler
6533e94352
util: remove md5
...
This hash function is broken and should not be used by new code. It is
currently only used by keepalive.
2009-05-04 21:30:39 +02:00
Sune Foldager
b19fc2c469
util: remove warnings when importing md5 and sha
2009-05-04 20:29:05 +02:00
Henrik Stuart
d0b7d204d4
transaction: refactor transaction.abort and rollback to use the same code
...
This adds a change to the way that abort is processed, as it will not continue
truncating files beyond the first failure, otherwise the respective
functionality is maintained, i.e. abort will not unlink files, but rollback
will.
Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-05-04 15:31:57 +02:00
Benoit Boissinot
fdd0aa0449
verify: reference the correct linkrev when a filelog is missing
...
when a filelog is missing, the first bad revision is the first revision
where the filelog is referenced, not 0.
2009-05-04 19:51:08 +02:00
Henrik Stuart
fbd8e53ee1
verify: avoid exception on missing file revlog
...
Previously, accessing the filelinkrevs of a specific file that happens to
have already been unlinked from the filesystem, e.g. due to a partial rollback
having occurred, will trigger a KeyError being raised.
Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-04-24 10:44:39 +02:00
Henrik Stuart
206e98a6fb
transaction: reset transaction on abort
...
Prevent the use of the transaction after it has been aborted.
Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-04-19 20:02:32 +02:00
Henrik Stuart
db9b1644e1
transaction: ensure finished transactions are not reused
...
All transactional methods on the transaction class have had a decorator
added that ensures the transaction is running.
Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-04-24 09:56:53 +02:00
Martin Geisler
15612f806b
commands: fix capitalization in revert help text
2009-05-03 20:34:12 +02:00
Alexander Solovyov
0e1b0cfac7
bisect: use subprocess to get command return code
2009-05-03 10:38:08 +03:00
Martin Geisler
6f75deac3f
localrepo: mark commit message template for translation
2009-05-03 00:20:08 +02:00
Martin Geisler
21ba2e96f6
util: initialize md5 and sha1 without using extra global variables
...
This lets the functions skip the "if _sha1 is None" test on each call.
2009-05-03 00:03:35 +02:00
Martin Geisler
11190d5aaa
util: always use subprocess
2009-05-02 23:05:35 +02:00
Martin Geisler
60e8837e82
commands: describe --debug in showconfig help
2009-05-02 21:29:00 +02:00
Martin Geisler
98fbeb0b9f
write options in "-r/--rev" style in help texts
2009-05-02 19:13:29 +02:00
Steve Borho
83629eeaea
simplemerge: use ui.warn() for warnings
2009-04-30 23:57:36 -05:00
Matt Mackall
83d555f0f7
config: add parse interface
2009-04-30 19:22:06 -05:00
Matt Mackall
f3552e4141
config: allow spaces in key portion of items
2009-04-29 20:47:30 -05:00
Matt Mackall
f4f1e74f08
localrepo: use set for requirements
2009-04-29 20:47:28 -05:00
Matt Mackall
2beed3c7cc
dirstate: use propertycache
2009-04-29 20:47:18 -05:00
Matt Mackall
a2f3734c4c
localrepo: use propertycache
2009-04-29 20:47:15 -05:00
Steve Borho
52bf113f2e
ui: replace regexp pattern with sequence of choices
...
Use ampersands (&) to delineate the response char in each choice.
ui.prompt() responses are now explicitly case insensitive. GUIs
that subclass ui can generate dialogs from the full choice names.
2009-04-30 10:15:32 -05:00
Patrick Mezard
695b5f0d5f
Fix missing import from 4bea569e9933 merge
2009-04-30 08:38:20 +02:00
Patrick Mezard
0cdb05f6a7
Merge with crew-stable
2009-04-29 23:56:20 +02:00
Martijn Pieters
6644fca213
localrepo: Refactor var names in filecommit to improve readability.
2009-04-28 18:14:49 +02:00
Martin Geisler
29ac8050fe
localrepo: corrected outdated comment
2009-04-28 18:32:15 +02:00
Martin Geisler
3ea1f07ffc
localrepo: fixed typos in comments
2009-04-28 18:29:50 +02:00
Martin Geisler
bbf34c8655
help: document nonempty template filter.
2009-04-28 17:30:00 +02:00
Martin Geisler
eee44d410e
webcommands: move nonempty logic from JavaScript to Python
...
This avoids hard-coding the '(none)' string in the JavaScript for each
style and avoids the {nonexisting|nonempty} hack which only works
since the template system don't complain about undefined variables.
2009-04-28 17:28:00 +02:00
Rocco Rutte
9aa9232b09
templatefilters: add "nonempty" template filter
...
It ensures that at least "(none)" is returned in case the argument
passed is None or ''. This is primarily useful to render empty
changelog messages for hgweb but may be useful for others, too.
2009-04-20 11:34:15 +02:00
Patrick Mezard
af0fa1531e
keepalive: fix a82d2fe41c70, reintroduce unredirected_hdrs
...
The previous fix dropped unredirected_hdrs which contain authentication
headers. Removing them break POST request requiring authentication (like
unbundle calls to bitbucket.org).
2009-04-27 22:15:36 +02:00
Martin Geisler
59adad78ff
pure/osutil: add copyright and license header
2009-04-26 01:57:12 +02:00
Martin Geisler
cd12c66fa6
match: add copyright and license header
2009-04-26 01:57:00 +02:00
Martin Geisler
f1f94caf9a
fancyopts: add copyright and license header
2009-04-26 01:56:52 +02:00
Martin Geisler
539f6e1aac
config: add copyright and license header
2009-04-26 01:56:41 +02:00
Martin Geisler
7d509c2459
add blank line after copyright notices and after header
2009-04-26 01:25:53 +02:00
Martin Geisler
2c8901a1b9
turn some comments back into module docstrings
2009-04-26 01:24:49 +02:00
Martin Geisler
8e4bc1e9ad
put license and copyright info into comment blocks
2009-04-26 01:13:08 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Dirkjan Ochtman
ed04819e2f
hgweb: pre-init mimetypes module (fixes ugly bug in python-2.6.2 mimetypes)
...
The ugly initialization hack in mimetypes' initialization procedure can make
hg serve hit the maximum recursion depth when in threaded mode.
2009-04-27 16:29:26 +02:00
Dirkjan Ochtman
6bfc24b2af
templater: fix little problem from stylemap() changes
2009-04-27 16:26:31 +02:00
Dirkjan Ochtman
80de6974e4
more whitespace cleanup and some other style nits
2009-04-27 12:37:19 +02:00
Ronny Pfannschmidt
1d760927a4
ui: ui.copy() now takes the ui class into account
...
Helps subclassing by other API users.
2009-04-27 10:33:57 +02:00
Peter Arrenbrecht
7b457d8a6a
whitespace cleanup
2009-04-27 09:12:07 +02:00
Dirkjan Ochtman
388d357896
templater: separate template management and actual string processing
2009-04-06 15:09:54 +02:00
Dirkjan Ochtman
bfe35438ae
hgweb: use new sessionvars code in hgwebdir, too
2009-04-27 11:37:30 +02:00
Dirkjan Ochtman
dc1e18ddad
hgweb: some cleanups in hgwebdir, remove double defaults
...
Removed obsolete command, expose useful cleannames function.
2009-04-27 11:37:08 +02:00
Matt Mackall
f6c8930392
replace various uses of list.reverse()
2009-04-26 16:50:44 -05:00
Matt Mackall
2f9b02c62d
replace util.sort with sorted built-in
...
This is marginally faster for small and moderately-sized lists
2009-04-26 16:50:44 -05:00
Matt Mackall
c15de6b1b7
ui: make interactive a method
2009-04-26 16:50:44 -05:00
Matt Mackall
9ec97bdefe
util: take propertycache from context.py
2009-04-26 16:50:44 -05:00
Matt Mackall
de487eacda
ui: print_exc() -> traceback()
2009-04-26 16:50:44 -05:00
Matt Mackall
1be9517a0f
ui: traceback -> _traceback
2009-04-26 16:50:44 -05:00
Matt Mackall
efc3ded95f
ui: report_untrusted fixes
...
- report_untrusted -> _reportuntrusted
- only report config shadows if enabled
- config shadows are debug messages
2009-04-26 16:50:44 -05:00
Matt Mackall
77cc1dfdeb
ui: privatize cdata vars
2009-04-26 16:50:44 -05:00
Matt Mackall
e84a8d1258
ui: buffers -> _buffers
2009-04-26 16:50:44 -05:00
Matt Mackall
30784dabe1
ui: trusted_users -> _trustusers, trusted_groups -> _trustgroups
2009-04-26 16:50:44 -05:00
Matt Mackall
4e3a9053dc
ui: assumetrusted -> trust
2009-04-26 16:50:44 -05:00
Matt Mackall
00aa85afa3
ui: _get_cdata -> _data
2009-04-26 16:50:44 -05:00
Matt Mackall
86dab18ddb
config: getsource -> source
2009-04-26 16:50:43 -05:00
Matt Mackall
286d20f8b7
ui: simplify fixconfig
2009-04-26 16:50:43 -05:00
Matt Mackall
59ffac0401
ui: fix-up and warn about deprecated %%
2009-04-26 16:50:43 -05:00
Matt Mackall
581beec905
templater: use new config parser
...
This gives us the ability to use includes and continuations
2009-04-26 16:50:43 -05:00
Matt Mackall
036f77e767
config: add section filter to read
...
move section filtering out of ui.readconfig
kill section filtering in config.update
2009-04-26 16:50:43 -05:00
Matt Mackall
f74e9a6511
config: deal with spaces at end of line more carefully
2009-04-26 16:50:43 -05:00
Matt Mackall
ba8099cfb8
hgweb: kill parentui references
2009-04-26 16:50:43 -05:00
Matt Mackall
be7d59ab85
ui: kill most users of parentui name and arg, replace with .copy()
2009-04-26 16:50:43 -05:00
Matt Mackall
88b13fecec
ui: replace parentui mechanism with repo.baseui
2009-04-26 16:50:43 -05:00
Matt Mackall
6708d0e299
add cmdutil.remoteui
...
remoteui sorts out the issues of getting ssh config options from the
local repo into the remote one while not copying other options like hooks.
2009-04-26 16:50:43 -05:00
Matt Mackall
10af375ad9
ui: less links to parentui
2009-04-26 16:50:43 -05:00
Matt Mackall
1217ed8107
config: add some helper methods
2009-04-26 16:50:43 -05:00
Matt Mackall
9c7f505708
config: split source data out into separate map
2009-04-26 16:50:43 -05:00
Matt Mackall
a85b71443f
config: add %unset name support
2009-04-26 16:50:43 -05:00
Matt Mackall
bc6c19544f
config: allow including other config files
2009-04-26 16:50:43 -05:00
Matt Mackall
b7e5202883
showconfig: show source file and line with --debug
2009-04-26 16:50:43 -05:00
Matt Mackall
8a63c10958
util: kill configparser wrapper
2009-04-26 16:50:43 -05:00
Matt Mackall
8034ce6ca9
hgweb: use config.config
2009-04-26 16:50:43 -05:00
Matt Mackall
68db339c4b
clone: config escaping no longer needed
2009-04-26 16:50:43 -05:00
Benjamin Wohlwend
ef87785038
ui.isatty() accesses sys.stdin, causing mod_wsgi to throw IOError.
2009-04-26 13:36:08 -07:00
Martijn Pieters
4abe231925
hg: allow hg.parseurl(url, None)
...
In many places hg.parseurl is called with a url and "opts.get('rev')",
suggesting the second, optional argument can be None. Because opts['rev']
usually defaults to [] this never happens in practice.
However, extensions don't necessarily behave the same, but do copy this
pattern.
Also, include wider hg.parseurl tests, beyond a demonstration of the problem.
2009-04-24 18:17:42 +02:00
Martin Geisler
56c8ce33ee
verify: combine sets instead of concatenating lists
2009-04-25 22:26:39 +02:00
Martin Geisler
7a5147b673
rebase, revlog: use set(x) instead of set(x.keys())
...
The latter is both unnecessary and slower.
2009-04-25 22:25:49 +02:00
Martin Geisler
bf3136d2eb
help: document stripdir template filter
2009-04-24 19:39:27 +02:00
Aleix Conchillo Flaque
95a32f54b8
templatefilters: add new stripdir filter
...
Adds a new template filter for removing directory levels from a
string. Examples:
{foo|stripdir} -> 'foo'
{foo/bar|stripdir} -> 'foo'
{foo/bar/more|stripdir} -> 'foo/bar'
{foo/bar/more|stripdir|stripdir} -> 'foo'
2009-04-24 18:37:44 +02:00
Martin Geisler
3ce0ca846d
context: use Python 2.4 decorator syntax
2009-04-24 18:47:15 +02:00
Martin Geisler
6a1b0a03df
localrepo: use sets in findcommonincoming
2009-04-24 17:32:18 +02:00
Martin Geisler
9fc1be4b52
strutil: removed rsplit
2009-04-24 17:32:18 +02:00
Martin Geisler
747c05d2eb
revlog: let nodestotag be a set instead of a list
2009-04-22 20:51:20 +02:00
Martin Geisler
e2222d3c43
replace set-like dictionaries with real sets
...
Many of the dictionaries created by dict.fromkeys were emulating sets.
These can now be replaced with real sets.
2009-04-22 00:57:28 +02:00
Martin Geisler
44aa7e92d1
util: use built-in set instead of util.unique
2009-04-22 00:56:06 +02:00
Martin Geisler
1deb417a82
util: use built-in set and frozenset
...
This drops Python 2.3 compatibility.
2009-04-22 00:55:32 +02:00
Matt Mackall
72994b59d3
keepalive: attempt to fix issue1003
...
This is a reimport of the relevant piece of the upstream urlgrabber,
which appears to be more correct.
2009-04-23 15:40:10 -05:00
Matt Mackall
e8b3de6bf8
ui: introduce new config parser
2009-04-23 15:40:10 -05:00
Matt Mackall
b784fcf1a7
ui: simplify init, kill dupconfig
2009-04-23 15:40:10 -05:00
Matt Mackall
371257fd73
ui: fold readsections into readconfig
...
readconfig now reads only single files
readconfig takes an optional list of sections
readconfig trusts files we're looking for sections in
2009-04-23 15:40:10 -05:00
Matt Mackall
c85f431ef9
ui: cleanup _is_trusted a bit
2009-04-23 15:40:10 -05:00
Matt Mackall
e2ffc933dc
ui: simplify parent overlay logic
2009-04-23 15:40:10 -05:00
Matt Mackall
87a779b162
ui: always have ucdata
...
simplify readconfig logic
2009-04-23 15:40:10 -05:00
Matt Mackall
97699b4b90
ui: fold verbosity_constraints into fixconfig, simplify
2009-04-23 15:40:10 -05:00
Matt Mackall
0174734c46
ui: kill updateopts
...
Move setconfig into dispatch._parseconfig
2009-04-23 15:40:10 -05:00
Matt Mackall
ebffe5ccb8
ui: refactor option setting
...
No more passing options as constructor keywords. Basic options are now
always stored in the overlay for simplicity and consistency.
2009-04-23 15:40:10 -05:00
Matt Mackall
cc041814d1
ui: kill redundant call to verbosity_constraints
2009-04-23 15:40:10 -05:00
Matt Mackall
f21df2587f
ui: always have an overlay
2009-04-23 15:40:10 -05:00
Matt Mackall
3243d007af
ui: kill check_trusted
2009-04-23 15:40:10 -05:00
Matt Mackall
db4f571c07
ui: move _isatty near user
2009-04-23 15:40:10 -05:00
Martin Geisler
85e0e5f5fa
cmdutil: return boolean result directly in want function
2009-04-22 17:15:59 +02:00
Martin Geisler
cc72b62ca4
util: return boolean result directly in util.binary
2009-04-22 17:14:58 +02:00
Martin Geisler
80dd126e92
remove unnecessary outer parenthesis in if-statements
2009-04-22 01:39:47 +02:00
Ronny Pfannschmidt
23e91269e5
add a deprecation warning for gc based lock releasing
2009-04-22 02:01:22 +02:00
Ronny Pfannschmidt
83cc19618e
document the locking pattern in localrepo.status
2009-04-22 02:01:22 +02:00
Ronny Pfannschmidt
9c365a3b4f
switch dircleanup in mercurial.hg.clone from gc based to explicit
2009-04-22 02:01:22 +02:00
Ronny Pfannschmidt
5356baa346
switch lock releasing in the core from gc to explicit
2009-04-22 02:01:22 +02:00
Ronny Pfannschmidt
f55e3eb9a7
made repo locks recursive and deprecate refcounting based lock releasing
...
all locks should use the explicit lock.release
mercurial.lock.lock.__del__ handles unwrapping recursive locks
localrepo.lock/wlock are still using weakref in order to keep backward
compatibiltiy to releasing locks via garbage collection
by ensuring the release on __del__
2009-04-22 02:01:22 +02:00
Wagner Bruna
1f15ab3b5a
patch, i18n: avoid parameterized plural
2009-04-20 21:16:14 -03:00
Wagner Bruna
635717f50b
commands, i18n: avoid untranslated strings as message parameters
2009-04-20 20:38:37 -03:00
Greg Ward
fd1580418a
manifest: improve error message about newlines in filenames
...
Include the offending filenames in the error message. Now this error message
is consistent with the same error issued by dirstate.py (although there is
still duplicate code).
2009-04-18 09:48:59 -04:00
Henrik Stuart
c1e6537e5f
strip: make repair.strip transactional to avoid repository corruption
...
Uses a transaction instance from the local repository to journal the
truncation of revlog files, such that if a strip only partially completes,
hg recover will be able to finish the truncate of all the files.
The potential unbundling of changes that have been backed up to be restored
later will, in case of an error, have to be unbundled manually. The
difference is that it will be possible to recover the repository state so
the unbundle can actually succeed.
2009-04-16 15:34:03 +02:00
Henrik Stuart
e8d7a7c8ef
transaction: support multiple, separate transactions
...
Solves that committed (closed) transactions may linger and be returned
on subsequent transaction calls, even though a new transaction should
be made, rather than a new nested transaction.
This also fixes a race condition with the use of weakref.
2009-04-15 19:54:22 +02:00
Henrik Stuart
c57f2e28ee
transaction: only delete journal on successful abort/commit
...
This solves that the journal file was always deleted when the transaction
was deleted, no matter whether the abort (rollback) succeeded or not.
Thus, never supporting a hg recover. The journal file is now only deleted
on close (commit) or a successful abort.
2009-04-16 15:41:25 +02:00
Patrick Mezard
cd3505dbbc
Merge with crew-stable
2009-04-13 21:57:17 +02:00
Vsevolod Solovyov
201e56ffbb
Fix issue1495, corner case of adding empty files via patching
2009-03-24 23:28:55 +00:00
Matt Mackall
7e7ba71a3a
Merge with crew-stable
2009-04-03 11:50:42 -05:00
Greg Ward
e688a18c6f
Typo fix in help.
2009-03-23 15:04:26 -04:00
Dirkjan Ochtman
fe39d83f68
cleanup: remove all trailing whitespace
2009-03-23 13:11:11 +01:00
Peter Arrenbrecht
b1f5d67640
keepalive: fix reference to IncompleteRead
2009-03-23 11:12:01 +01:00
Steve Borho
1495d07855
demandimport: blacklist pythoncom
...
win32com.shell would segfault at import time if pythoncom
was demand loaded.
2009-03-09 21:00:37 -05:00
Matt Mackall
02f3d06343
diffstat: use width 80 by default and avoid division by zero
2009-03-20 14:38:50 -05:00
Matt Mackall
7d51e0b1f6
bundlerepo: reintroduce dirstate
2009-03-17 13:43:11 -05:00
Augie Fackler
526bbde326
bisect: fix --command for me.
2009-03-09 17:13:12 -05:00
Matt Mackall
805511403b
resolve: move reset to localrepo.commit
...
This way rebase doesn't leave a stale resolve state
2009-03-16 16:58:41 -05:00
Matt Mackall
891ec3832e
resolve: keep .orig files
2009-03-16 16:58:41 -05:00
Matt Mackall
56a3a8557f
Merge with crew-stable
2009-03-09 11:41:38 -05:00
Benoit Boissinot
c34938cba1
verify: find correct first corrupted cset for missing/corrupted revlogs
2009-03-07 20:16:03 +01:00
Benoit Boissinot
5ed5555a2d
verify: do not abort on fully corrupted revlog
2009-03-07 20:04:56 +01:00
Benoit Boissinot
35d90d90ba
hgweb: fix allow_read permissions when a user is specified
...
Thanks to Juan Pablo Aroztegi for reporting and debugging it.
2009-03-07 00:59:41 +01:00
Benoit Allard
bf86b21b09
update copyright date in version information
2009-03-05 10:38:39 +01:00
Dongsheng Song
3cab4b874a
Typo fix
2009-03-05 14:44:13 +08:00
Augie Fackler
bf90b0cbb4
merge: better error messages to lead users to hg update --clean to abandon merges.
...
Fixes issue1533.
2009-03-04 13:06:16 -06:00
Matt Mackall
5871cdf2c8
audit: be even pickier (issue1450)
2009-03-04 17:02:16 -06:00
Bill Barry
8ac447bbd7
dispatch: extract command execution block into method
...
This pulls the pre-command hook/command/post-command hook workflow out of
the method it is in and puts it into its own method so that it potentially
could be exposed for extensions to wrap.
2009-02-12 09:36:15 -07:00