git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] remote-hg: fix for files with spaces

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 11, 2012, 14:09 UTC
Message-ID
<1352642999-7205-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1352642999-7205-1-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 contrib/remote-helpers/git-remote-hg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 0edb8ac..1d46838 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -562,7 +562,7 @@ def parse_commit(parser):
 
     for line in parser:
         if parser.check('M'):
-            t, m, mark_ref, path = line.split(' ')
+            t, m, mark_ref, path = line.split(' ', 3)
             mark = int(mark_ref[1:])
             f = { 'mode' : hgmode(m), 'data' : blob_marks[mark] }
         elif parser.check('D'):
-- 
1.8.0
Previous: Felipe Contreras
Message 3 of 3 in “remote-hg: small fixes”
  1. 0/2 remote-hg: small fixesFelipe Contreras, Nov 11, 2012
  2. 1/2 remote-hg: trivial cleanupsFelipe Contreras, Nov 11, 2012
  3. 2/2 remote-hg: fix for files with spacesFelipe Contreras, Nov 11, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.