"tag from <refname>" gives KeyError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Triaged
|
Medium
|
Unassigned | ||
python-fastimport |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This code in processors/
commit refs/heads/
author Matthew Luckie <email address hidden> 1087095178 +0000
committer Samuel Bronson <email address hidden> 1247888914 +0000
data 43
Imported from scamper-
deleteall
tag scamper-
from refs/heads/
tagger Matthew Luckie <email address hidden> 1087095178 +0000
data 29
Package scamper-
This is documented in the git-fast-import(1) manpage:
Here <committish> is any of the following:
· The name of an existing branch already in fast-import’s
its treated as a SHA-1 expression.
· A mark reference, :<idnum>, where <idnum> is the mark number.
The reason fast-import uses : to denote a mark reference is
this character is not legal in a Git branch name. The leading :
[two other, fairly git-specific forms are also documented]
Okay, I've written a test on branch lp:~naesten/bzr-fastimport/401249-tag-from-ref.
As for a fix, I'm looking at the code, and it looks to me as though there ought to be a method on cache_manager. CacheManager to look up a committish -- as it stands, the logic seems to be tied up in the head tracking code, which is *probably* not something we want to call from GenericProcesso r._set_ tag(), though I'm not positive about that.