Merge lp:~jelmer/brz-git/fix-git-import into lp:brz-git

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 1820
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz-git/fix-git-import
Merge into: lp:brz-git
Diff against target: 27 lines (+2/-1)
1 file modified
commands.py (+2/-1)
To merge this branch: bzr merge lp:~jelmer/brz-git/fix-git-import
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+340775@code.launchpad.net

Commit message

Fix git-import command.

Description of the change

Fix git-import command.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Rubberstamp! Proposer approves of own proposal.

review: Approve
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :
lp:~jelmer/brz-git/fix-git-import updated
1820. By Jelmer Vernooij

Merge trunk.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'commands.py'
--- commands.py 2018-02-27 18:43:26 +0000
+++ commands.py 2018-03-06 11:56:28 +0000
@@ -22,6 +22,7 @@
2222
23from __future__ import absolute_import23from __future__ import absolute_import
2424
25import breezy.bzr.bzrdir
25from ...commands import (26from ...commands import (
26 Command,27 Command,
27 display_command,28 display_command,
@@ -95,6 +96,7 @@
95 from .repository import GitRepository96 from .repository import GitRepository
9697
97 dest_format = controldir.ControlDirFormat.get_default_format()98 dest_format = controldir.ControlDirFormat.get_default_format()
99 assert dest_format is not None
98100
99 if dest_location is None:101 if dest_location is None:
100 dest_location = os.path.basename(src_location.rstrip("/\\"))102 dest_location = os.path.basename(src_location.rstrip("/\\"))
@@ -139,7 +141,6 @@
139 revid = mapping.revision_id_foreign_to_bzr(sha)141 revid = mapping.revision_id_foreign_to_bzr(sha)
140 source_branch = LocalGitBranch(source_repo.controldir, source_repo,142 source_branch = LocalGitBranch(source_repo.controldir, source_repo,
141 sha)143 sha)
142 source_branch.head = sha
143 if head_branch.last_revision() != revid:144 if head_branch.last_revision() != revid:
144 head_branch.generate_revision_history(revid)145 head_branch.generate_revision_history(revid)
145 source_branch.tags.merge_to(head_branch.tags)146 source_branch.tags.merge_to(head_branch.tags)

Subscribers

People subscribed via source and target branches

to all changes: