git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] remote-hg: small fixes
@ 2012-11-11 14:09 Felipe Contreras
  2012-11-11 14:09 ` [PATCH 1/2] remote-hg: trivial cleanups Felipe Contreras
  2012-11-11 14:09 ` [PATCH 2/2] remote-hg: fix for files with spaces Felipe Contreras
  0 siblings, 2 replies; 3+ messages in thread
From: Felipe Contreras @ 2012-11-11 14:09 UTC (permalink / raw)
  To: git; +Cc: Felipe Contreras, Jeff King

Hi,

Nothing major.

These are meant to be on top of fc/remote-hg that is on peff/pu.

Felipe Contreras (2):
  remote-hg: trivial cleanups
  remote-hg: fix for files with spaces

 contrib/remote-helpers/git-remote-hg | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
1.8.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] remote-hg: trivial cleanups
  2012-11-11 14:09 [PATCH 0/2] remote-hg: small fixes Felipe Contreras
@ 2012-11-11 14:09 ` Felipe Contreras
  2012-11-11 14:09 ` [PATCH 2/2] remote-hg: fix for files with spaces Felipe Contreras
  1 sibling, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2012-11-11 14:09 UTC (permalink / raw)
  To: git; +Cc: Felipe Contreras, Jeff King

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] remote-hg: fix for files with spaces
  2012-11-11 14:09 [PATCH 0/2] remote-hg: small fixes Felipe Contreras
  2012-11-11 14:09 ` [PATCH 1/2] remote-hg: trivial cleanups Felipe Contreras
@ 2012-11-11 14:09 ` Felipe Contreras
  1 sibling, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2012-11-11 14:09 UTC (permalink / raw)
  To: git; +Cc: Felipe Contreras, Jeff King

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-11 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-11 14:09 [PATCH 0/2] remote-hg: small fixes Felipe Contreras
2012-11-11 14:09 ` [PATCH 1/2] remote-hg: trivial cleanups Felipe Contreras
2012-11-11 14:09 ` [PATCH 2/2] remote-hg: fix for files with spaces Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).