summaryrefslogtreecommitdiff
authorHelio Chissini de Castro <helio.chissini.de.castro@collabora.co.uk>2012-09-18 13:04:34 (GMT)
committer Helio Chissini de Castro <helio.chissini.de.castro@collabora.co.uk>2012-09-18 13:04:34 (GMT)
commit0f4ac31c5c662105fcbe722978d3e8be56706852 (patch) (side-by-side diff)
tree765439e2d7e7caba2cc7ccde5d4a204e0f2637ea
parentbb69356172d8582abcd71cedb7dca4399d4e0070 (diff)
downloadanagrman-0f4ac31c5c662105fcbe722978d3e8be56706852.tar.gz
anagrman-0f4ac31c5c662105fcbe722978d3e8be56706852.tar.bz2
Missing testcase where no specific repository exists, but still different branch is used. The generated file was not adding the branch.
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xanagrman3
1 files changed, 3 insertions, 0 deletions
diff --git a/anagrman b/anagrman
index 6f15c06..5f1b68f 100755
--- a/anagrman
+++ b/anagrman
@@ -71,6 +71,7 @@ class CGitPlainXMLParser:
fremote = i[1]
if 'path' in i:
path = i[1]
+ print name
if name and revision and fremote:
if projects.has_key( name ):
if projects[name]['revision'] != revision:
@@ -81,6 +82,8 @@ class CGitPlainXMLParser:
projects[name] = {'revision':revision,'remote':fremote,'path':path}
elif name and fremote:
projects[name] = {'remote':fremote,'path':path}
+ elif name and revision:
+ projects[name] = {'revision':revision,'path':path}
elif name:
projects[name] = {'path':path}
name = ''