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
1=== modified file 'commands.py'
2--- commands.py 2018-02-27 18:43:26 +0000
3+++ commands.py 2018-03-06 11:56:28 +0000
4@@ -22,6 +22,7 @@
5
6 from __future__ import absolute_import
7
8+import breezy.bzr.bzrdir
9 from ...commands import (
10 Command,
11 display_command,
12@@ -95,6 +96,7 @@
13 from .repository import GitRepository
14
15 dest_format = controldir.ControlDirFormat.get_default_format()
16+ assert dest_format is not None
17
18 if dest_location is None:
19 dest_location = os.path.basename(src_location.rstrip("/\\"))
20@@ -139,7 +141,6 @@
21 revid = mapping.revision_id_foreign_to_bzr(sha)
22 source_branch = LocalGitBranch(source_repo.controldir, source_repo,
23 sha)
24- source_branch.head = sha
25 if head_branch.last_revision() != revid:
26 head_branch.generate_revision_history(revid)
27 source_branch.tags.merge_to(head_branch.tags)

Subscribers

People subscribed via source and target branches

to all changes: