Merge lp:~goneri/bzr-fastimport/goneri into lp:~bzr/bzr-fastimport/fastimport.dev

Proposed by Gonéri Le Bouder
Status: Rejected
Rejected by: Jelmer Vernooij
Proposed branch: lp:~goneri/bzr-fastimport/goneri
Merge into: lp:~bzr/bzr-fastimport/fastimport.dev
Diff against target: None lines
To merge this branch: bzr merge lp:~goneri/bzr-fastimport/goneri
Reviewer Review Type Date Requested Status
Gonéri Le Bouder (community) Needs Resubmitting
Bazaar Developers Pending
Review via email: mp+10117@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Gonéri Le Bouder (goneri) wrote :

Hi,

git-fast-export syntax in git 1.6 seems that have changed a bit. idrefs have now a ':' prefix. The first patch address that. The second fixes another crash I found when STDIN is empty.
With the bugs fixed by my branch. I can use git-bzr without problem with a git 1.6.

Best regards,

     Gonéri Le Bouder

lp:~goneri/bzr-fastimport/goneri updated
205. By Gonéri Le Bouder

fix the test suite

206. By Gonéri Le Bouder

drop a debug print

207. By Gonéri Le Bouder

put back the ':' in the export-marks

Revision history for this message
Gonéri Le Bouder (goneri) wrote :

Hi,

I updated my patch. ':' are not present internaly anymore. I think it's more clean this way since according to git-fastexport(1) the ':' is not part of the idref. I had to fix the testsuite because of that.
The testscript provided with Bug "#347729: git-bzr doesn't work" still work fine.

review: Needs Resubmitting
lp:~goneri/bzr-fastimport/goneri updated
208. By Gonéri Le Bouder

"committish" not always a :mark

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

An alternative fix has landed, this is no longer necessary.

Unmerged revisions

208. By Gonéri Le Bouder

"committish" not always a :mark

207. By Gonéri Le Bouder

put back the ':' in the export-marks

206. By Gonéri Le Bouder

drop a debug print

205. By Gonéri Le Bouder

fix the test suite

204. By Gonéri Le Bouder

fix the compat with git fast-export

203. By Gonéri Le Bouder

avoid crash if input is empty

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'commands.py'
2--- commands.py 2009-08-07 07:55:02 +0000
3+++ commands.py 2009-08-13 20:03:09 +0000
4@@ -83,7 +83,7 @@
5 if mark is None:
6 self.id = '@%d' % lineno
7 else:
8- self.id = ':' + mark
9+ self.id = mark
10 self._binary = ['data']
11
12 def __repr__(self):
13@@ -122,7 +122,7 @@
14 if mark is None:
15 self.id = '@%d' % lineno
16 else:
17- self.id = ':%s' % mark
18+ self.id = '%s' % mark
19
20 def __repr__(self):
21 if self.mark is None:
22
23=== modified file 'parser.py'
24--- parser.py 2009-08-07 13:19:29 +0000
25+++ parser.py 2009-08-13 20:03:09 +0000
26@@ -379,7 +379,7 @@
27 dataref = None
28 data = self._get_data('filemodify')
29 else:
30- dataref = params[1]
31+ dataref = params[1].lstrip(':'); # Don't take the first :
32 data = None
33 return commands.FileModifyCommand(path, kind, is_executable, dataref,
34 data)
35@@ -410,8 +410,8 @@
36 line = self.next_line()
37 if line is None:
38 return None
39- elif line.startswith('from '):
40- return line[len('from '):]
41+ elif line.startswith('from :'):
42+ return line[len('from :'):]
43 elif required_for:
44 self.abort(errors.MissingSection, required_for, 'from')
45 else:
46@@ -423,8 +423,8 @@
47 line = self.next_line()
48 if line is None:
49 return None
50- elif line.startswith('merge '):
51- return line[len('merge '):]
52+ elif line.startswith('merge :'):
53+ return line[len('merge :'):]
54 else:
55 self.push_line(line)
56 return None
57
58=== modified file 'processors/generic_processor.py'
59--- processors/generic_processor.py 2009-08-07 13:17:00 +0000
60+++ processors/generic_processor.py 2009-08-13 18:32:25 +0000
61@@ -286,6 +286,10 @@
62 marks_file.export_marks(self.params.get("export-marks"),
63 self.cache_mgr.revision_ids)
64
65+ if self.cache_mgr.last_ref == None:
66+ """Nothing to refresh"""
67+ return
68+
69 # Update the branches
70 self.note("Updating branch information ...")
71 updater = branch_updater.BranchUpdater(self.repo, self.branch,

Subscribers

People subscribed via source and target branches

to all changes: