Commit Graph

8084 Commits

Author SHA1 Message Date
Fabian Kreutz
159caa34b0 i18n-de: More translations of commands.py (revert, status, unbundle, ...) 2009-04-17 14:10:05 +03:00
Ronny Pfannschmidt
23e91269e5 add a deprecation warning for gc based lock releasing 2009-04-22 02:01:22 +02:00
Ronny Pfannschmidt
0cd168d6ec switch lock releasing in the extensions from gc to explicit 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
Benoit Boissinot
3da3b1d1e0 run-tests: fix -jN broken by eb47f6866e97 2009-04-22 01:53:15 +02:00
Patrick Mezard
4d356cb83b Merge with crew-stable 2009-04-21 16:02:59 +02:00
Paul Aurich
477feb0ff9 convert/mtn: handle subsecond commit dates (issue1616) 2009-04-21 15:57:15 +02:00
Patrick Mezard
33d1383a9e Merge with crew-stable 2009-04-21 14:25:36 +02:00
Patrick Mezard
551e0cf361 convert/mtn: handle new files in moved directories (issue1619)
Reported and investigated by Paul Aurich <paul@darkrain42.org>
2009-04-21 14:17:29 +02:00
Christian Ebert
3465b74bb2 keyword: set overwrite message only once, not for each file 2009-04-21 09:56:07 +01:00
Martin Geisler
f3f344d0c5 run-tests: removed some underscores (coding style) 2009-04-21 11:19:10 +02:00
Martin Geisler
6f1fe4b8fc run-tests: upper-case global PYTHON variable 2009-04-21 10:53:42 +02:00
Greg Ward
7b736bed65 run-tests: reduce global variables set by parse_args(). 2009-04-20 21:50:11 -04:00
Greg Ward
e0391753e2 run-tests: factor out main(); reduce use of globals a bit. 2009-04-20 21:42:20 -04:00
Greg Ward
2f2a34c5e7 run-tests: move bits of main program so it's all at the bottom. 2009-04-20 21:10:39 -04:00
Greg Ward
5de1444cff run-tests: move _hgpath() up so it's not in the middle of the main program. 2009-04-20 21:07:05 -04:00
Greg Ward
0f9eca8100 run-tests: factor out parse_args(). Clarify use of globals a bit. 2009-04-20 21:04:24 -04:00
Wagner Bruna
1f15ab3b5a patch, i18n: avoid parameterized plural 2009-04-20 21:16:14 -03:00
Wagner Bruna
b5e103128b keyword, i18n: avoid untranslated strings as message parameters 2009-04-20 21:16:13 -03:00
Wagner Bruna
635717f50b commands, i18n: avoid untranslated strings as message parameters 2009-04-20 20:38:37 -03:00
Wagner Bruna
b3e2409ffb bookmarks: fix typo 2009-04-20 20:38:37 -03:00
Wagner Bruna
44eb149a36 convert: fix typo 2009-04-05 05:13:39 -03:00
Benoit Boissinot
8f59ac363c i18n: the message should not contain '\r'
reported by bardy <bardiku@gmail.com>
2009-04-20 12:25:45 +02:00
Greg Ward
c1e5c578c4 Add comment about this test failing under bzr 1.13 due to a bug in bzr. 2009-04-19 07:55:53 -04:00
Christian Ebert
510a4bc8a5 test-highlight: adapt output to latest pygments keeping backwards compatibility 2009-04-19 13:27:03 +01:00
Benoit Boissinot
4114ea7f05 merge with stable 2009-04-18 22:54:37 +02:00
Greg Ward
524e44bf0e cvsps: make debugging easier by adding __repr__() methods. 2009-04-18 09:43:21 -04:00
Greg Ward
53ff712654 cvsps: update docstring for changeset class. 2009-04-18 09:44:51 -04:00
Benoit Boissinot
8ca5d6ee82 merge with crew 2009-04-18 16:44:24 +02: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
Martin Geisler
52ce98c9a8 help texts: write command line switches as -a/--abc 2009-04-18 14:40:21 +02:00
David Frey
feea6494c8 Update qimport help explaining how to read a patch from stdin (Issue371) 2009-04-18 00:21:11 -07: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
Tobias Bell
b783216f45 i18n-de: synchronised with hg.pot 2009-04-14 18:16:04 +02:00
Nicolas Dumazet
93ddede9f9 inotify: Do not raise TypeError when client.query returns None
When something went wrong in client.query, it returns None.
If inotify.debug=True, we will attempt in this case a zip(A, None, B), which
would raise a TypeError.
2009-04-08 14:15:18 +09:00
Nicolas Dumazet
d788ab8874 inotify: Simplifying init code
simplifying

retry = False
try:
    try:
        doA()
        retry = True
    except X:
        doB()
        retry = True
except:
    doC()
    pass
if retry:
    doD()

 -- into --

try:
    try:
        doA()
    except X:
        doB()
except:
    doC()
    pass
else:
    doD()
2009-04-08 13:29:51 +09:00
Nicolas Dumazet
2a759b6b22 inotify: files is always a list: 'files or []' is redundant
files comes from match.files() : it always returns a list.
2009-04-08 13:27:28 +09:00
Patrick Mezard
cd3505dbbc Merge with crew-stable 2009-04-13 21:57:17 +02:00
Patrick Mezard
0d13db37f7 extdiff: preserve execute-bit across copies (issue1562)
Bug report and test by Mads Kiilerich <mads@kiilerich.com>
2009-04-09 14:32:44 +02:00
Patrick Mezard
de41b9ace4 extdiff: merge node and working dir snapshot modes 2009-04-13 21:21:01 +02:00
Patrick Mezard
b3f0d7b5b8 convert/p4: win32 fixes
* cmd.exe does not know single quotes
* win32 does not like trailing whitespace very much. Trade test coverage for
  maintenance time and drop the trailing whitespaces tests.
2009-04-13 16:15:45 +02:00
Patrick Mezard
3ca6ee213a test-issue1438: make executable 2009-04-13 21:18:53 +02: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