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

[PATCH 1/2] remote-hg: trivial cleanups

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 11, 2012, 14:09 UTC
Message-ID
<1352642999-7205-2-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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 7929eec..0edb8ac 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -523,7 +523,6 @@ def parse_blob(parser):
     data = parser.get_data()
     blob_marks[mark] = data
     parser.next()
-    return
 
 def get_merge_files(repo, p1, p2, files):
     for e in repo[p1].files():
@@ -639,10 +638,11 @@ def parse_commit(parser):
     rev = repo[node].rev()
 
     parsed_refs[ref] = node
-
     marks.new_mark(rev, commit_mark)
 
 def parse_reset(parser):
+    global parsed_refs
+
     ref = parser[1]
     parser.next()
     # ugh
-- 
1.8.0
Previous: Felipe ContrerasNext: Felipe Contreras
Message 2 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.