Commit Graph

1773 Commits

Author SHA1 Message Date
Shun-ichi GOTO
8edf72da29 win32mbcs: also wrap windows.pconvert() 2009-07-09 22:06:30 +09:00
Brodie Rao
fef8ccb4a7 win32mbcs: look up modules using sys.modules (issue1729)
globals()[module] doesn't work for modules inside of packages, such as
os.path.
2009-07-08 09:48:48 -04:00
Christian Ebert
13a3dfdc8e keyword: eliminate potential reference cycles from kwrepo
- delete kwrepo.commitctx after using the tweaked version
- prefer self.hook over repo.hook to avoid nesting

Also pass arguments to commit as arbitrary list.

Thanks to Simon Heimberg and Matt Mackall for guidance.
2009-07-09 11:59:12 +02:00
Greg Ward
e4f07e8a14 convert/cvs: improve error message on unexpected server output. 2009-07-08 22:08:45 -04:00
Henrik Stuart
77301ebe8e acl: read correct index into url for username (issue298)
The index was inadvertedly off-by-one causing the username to be the
remote host rather than the remote user when hosted in a http(s)
session.
2009-07-02 19:53:20 +02:00
Christian Ebert
d0fba52b71 keyword: make repo.commit use a custom commitctx wrapper
This avoids forcing the dirstate of overwritten files to normal
during a commit.

Thanks to Dan Villiom Podlaski Christiansen for the idea of a
"double wrapper", so other extensions can still wrap
repo.commitctx safely.
2009-06-30 11:30:03 +02:00
Matt Mackall
d76e8a3e52 Merge with i18n 2009-06-30 12:32:30 -05:00
Martin Geisler
c15a8f8118 convert: do not ask for translation of "%s %s" 2009-06-27 12:31:41 +02:00
Matt Mackall
e869264d04 Merge with i18n 2009-06-23 15:43:09 -05:00
Martin Geisler
e032f8f8c6 merged with crew 2009-06-22 22:22:48 +02:00
Cédric Duval
dbcec5595d extensions: improve the consistency of synopses
Trying as much as possible to consistently:
 - use a present tense predicate followed by a direct object
 - verb referring directly to the functionality provided
   (ie. not "add command that does this" but simple "do that")
 - keep simple and to the point, leaving details for the long help
   (width is tight, possibly even more so for translations)

Thanks to timeless, Martin Geisler, Rafael Villar Burke, Dan Villiom
Podlaski Christiansen and others for the helpful suggestions.
2009-06-22 15:48:08 +02:00
Cédric Duval
d99e4e75eb acl: help improvements
Thanks to timeless for the review.
2009-06-22 14:49:07 +02:00
Cédric Duval
a144fa2af5 bookmarks: help improvements
- bookmarks are obviously Mercurial's, no need to specify it
 - more explicit about the behavior without track.current
 - typos

Note: the extension's help is shadowed by that of the command
of the same name and as such will never appear to the user.

Thanks to timeless for the fixes.
2009-06-22 14:08:49 +02:00
Martin Geisler
16155b528f merged with crew 2009-06-21 19:06:57 +02:00
Dirkjan Ochtman
9685cd7ac9 mq: fix error message for qpush inexistent-patch (issue1702) 2009-06-21 17:34:33 +02:00
Dirkjan Ochtman
8e61ac3b6d highlight: was broken since 8f1a86879dd3 (encoding) 2009-06-21 16:54:57 +02:00
Dirkjan Ochtman
a774ff01bc help: add/fix docstrings for a bunch of extensions 2009-06-21 16:45:47 +02:00
Cédric Duval
0caffe860f help: remove per-extension paragraph on how to enable it
The central place to find this information is the "extensions" help topic.
2009-06-20 20:57:13 +02:00
Matt Mackall
995038fe46 bookmarks: add appropriate locking (issue1691)
- make updates of bookmark state locked and atomic
- wrap commit so that commit and bookmarks happen under the same lock
2009-06-20 16:42:51 -05:00
Martin Geisler
ffeac49b63 interhg: escape backslashes in docstring 2009-06-19 10:30:18 +02:00
Martin Geisler
b5e6e91ee1 interhg: remove unnecessary escaping 2009-06-19 10:24:34 +02:00
Frank Kingswood
d0ec83933c convert: Make P4 conversion cope with keywords, binary files and symbolic links.
Convert now handles errors from p4 during conversion more gracefully.
If keyword expansion is enabled in a P4 file then keywords will be
unexpanded in hg.
Added testcase for p4 filetypes and keyword (un)expansion.
This testcase ignores UTF and Apple files to avoid binary data.

Edited by pmezard: fixed collation issue on OSX
2009-06-18 10:39:04 +01:00
Cédric Duval
e9c53f7deb patchbomb: do not assume the presence of angle brackets around msg-id
RFC 5322 states:
  "Semantically, the angle bracket characters are not part of the
   msg-id; the msg-id is what is contained between the two angle bracket
   characters."

Hence it should be correct to pass a message Id with no angle brackets
to --in-reply-to. Adding them if missing.
2009-06-17 20:54:26 +02:00
Christian Ebert
623f4a4a00 keyword: concise help title 2009-06-18 01:21:26 +01:00
Cédric Duval
d66dcc4318 interhg: upgrade comments to online help and improve them
Some inspiration taken from the wiki page of the extension.
2009-06-18 08:18:52 +02:00
Cédric Duval
66894ecd9d churn: improve description
Thanks to Martin Geisler and timeless for the suggested improvements.
2009-06-16 22:24:46 +02:00
Rocco Rutte
7373bdd271 convert: fix builtin cvsps when no branchpoints are present 2009-06-14 20:24:18 +02:00
Patrick Mezard
0370a2ceed convert/svn: drop undocumented and untested revision 'blacklist' 2009-06-21 23:17:05 +02:00
Patrick Mezard
64f9f43970 convert/svn: test svn tags encoding 2009-06-21 23:17:05 +02:00
Patrick Mezard
55cbeb1d9a convert/svn: stop returning unicode revision identifiers 2009-06-21 23:17:02 +02:00
Patrick Mezard
38e366e1e6 convert/svn: remove confusing unicode variable 2009-06-21 23:04:02 +02:00
Patrick Mezard
872c1fc1ec convert/svn: remove dead code from entry deletion code path
It was made obsolete when multi-branches commit were split into multiple
Mercurial commits.
2009-06-21 23:04:02 +02:00
Patrick Mezard
76e308b8db convert/svn: remove a useless recode() call in deletion path 2009-06-21 23:04:02 +02:00
Patrick Mezard
5943f46c36 convert/svn: remove useless encoding/decoding calls (issue1676) 2009-06-21 23:04:02 +02:00
Patrick Mezard
beed8285f4 convert/svn: remove dead code and obsolete comments 2009-06-21 23:04:01 +02:00
Patrick Mezard
7039de96dc Make mq, record and transplant honor patch.eol 2009-06-15 00:03:27 +02:00
Patrick Mezard
c1548a6a3e Add patch.eol to ignore EOLs when patching (issue1019)
The intent is to fix many issues involving patching when win32ext is enabled.
With win32ext, the working directory and repository files EOLs are not the same
which means that patches made on a non-win32ext host do not apply cleanly
because of EOLs discrepancies. A theorically correct approach would be
transform either the patched file or the patch content with the
encoding/decoding filters used by win32ext. This solution is tricky to
implement and invasive, instead we prefer to address the win32ext case, by
offering a way to ignore input EOLs when patching and rewriting them when
saving the patched result.
2009-06-15 00:03:26 +02:00
Brendan Cully
7809c80bee gpg: unbreak 070fa724b247. We need a test. 2009-06-14 12:18:46 -07:00
Matt Mackall
f004f8a57f share: allow dest to default to the basename of source 2009-06-13 18:16:44 -05:00
Matt Mackall
d9cad07c11 share: add experimental share extension 2009-06-13 18:01:48 -05:00
Adrian Buehlmann
d4fe84d762 mq: eliminate warning on qpush with empty series
Warning was "DeprecationWarning: use lock.release instead of del lock"
2009-06-08 20:02:44 +02:00
Nicolas Dumazet
72d6c7e713 inotify: repowatcher: don't use a watches attribute to count watches
The encapsulated watcher alread has a __len__ method for this purpose.
Also, repowatcher.watches was never decremented on watch deletions.
2009-05-23 20:38:08 +09:00
Nicolas Dumazet
020e8eab5b inotify: put the "while True: poll()" loop in pollable class 2009-05-21 23:51:54 +09:00
Nicolas Dumazet
90ce932bee inotify: refactor (un)register methods into pollable object
repowatcher.master becomes unnecessary
2009-05-21 20:15:00 +09:00
Benoit Boissinot
c157c77a0e inotify.server: the decorator eventaction() shouldn't be a method of repowatcher 2009-06-13 18:41:28 +02:00
Nicolas Dumazet
25a9300077 inotify: add log config option redirect inotify server output to a file 2009-06-13 18:14:50 +02:00
Nicolas Dumazet
28d2c833e7 inotify: raise QueryFailed when the server crash
When the server crashes, it does not write back on the socket. The message
which is then read from the socket is '', which raises a TypeError.
Catching TypeError to raise QueryFailed instead.
2009-06-13 17:39:01 +02:00
Nicolas Dumazet
8a843dec9d inotify: server: move split() out of server
split() has nothing to do with the server logic, it does not need to be
in the class. Move it on top, next to join() which does the opposite.
2009-05-27 00:29:11 +09:00
Benoit Boissinot
594851baf2 inotify: remove unused variables 2009-06-13 17:23:08 +02:00
Brendan Cully
a03c60a23d Merge with crew-stable 2009-06-11 12:23:08 -07:00