Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: the author email can be null
author
Felipe Contreras
<felipe.contreras@gmail.com>
Sun, 4 Nov 2012 02:13:38 +0000
(
03:13
+0100)
committer
Jeff King
<peff@peff.net>
Sun, 4 Nov 2012 13:35:21 +0000
(08:35 -0500)
Like 'Foo <>'.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
e30473c
)
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index a9ae8446fb111eee071d8a7142994b1a5b0b0442..7929eec30b39280985a9d2b7147699d99e211817 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-35,9
+35,9
@@
import urllib
#
NAME_RE = re.compile('^([^<>]+)')
#
NAME_RE = re.compile('^([^<>]+)')
-AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]
+
)>$')
-AUTHOR_HG_RE = re.compile('^(.*?) ?<(.
+
?)(?:>(.+)?)?$')
-RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.
+
)> (\d+) ([+-]\d+)')
+AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]
*
)>$')
+AUTHOR_HG_RE = re.compile('^(.*?) ?<(.
*
?)(?:>(.+)?)?$')
+RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.
*
)> (\d+) ([+-]\d+)')
def die(msg, *args):
sys.stderr.write('ERROR: %s\n' % (msg % args))
def die(msg, *args):
sys.stderr.write('ERROR: %s\n' % (msg % args))