Fossil SCM
Fix a bug in name resolution when the name begins with "tag:"
Commit
ac65f5bd54b71628d73843f82bfb955c40dde92d
Parent
b0036a3c971dc7e…
1 file changed
+1
+1
| --- src/name.c | ||
| +++ src/name.c | ||
| @@ -152,10 +152,11 @@ | ||
| 152 | 152 | " AND event.objid=tagxref.rid " |
| 153 | 153 | " AND event.type GLOB '%q'" |
| 154 | 154 | " ORDER BY event.mtime DESC /*sort*/", |
| 155 | 155 | &zTag[4], zType |
| 156 | 156 | ); |
| 157 | + return rid; | |
| 157 | 158 | } |
| 158 | 159 | |
| 159 | 160 | /* root:TAG -> The origin of the branch */ |
| 160 | 161 | if( memcmp(zTag, "root:", 5)==0 ){ |
| 161 | 162 | Stmt q; |
| 162 | 163 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -152,10 +152,11 @@ | |
| 152 | " AND event.objid=tagxref.rid " |
| 153 | " AND event.type GLOB '%q'" |
| 154 | " ORDER BY event.mtime DESC /*sort*/", |
| 155 | &zTag[4], zType |
| 156 | ); |
| 157 | } |
| 158 | |
| 159 | /* root:TAG -> The origin of the branch */ |
| 160 | if( memcmp(zTag, "root:", 5)==0 ){ |
| 161 | Stmt q; |
| 162 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -152,10 +152,11 @@ | |
| 152 | " AND event.objid=tagxref.rid " |
| 153 | " AND event.type GLOB '%q'" |
| 154 | " ORDER BY event.mtime DESC /*sort*/", |
| 155 | &zTag[4], zType |
| 156 | ); |
| 157 | return rid; |
| 158 | } |
| 159 | |
| 160 | /* root:TAG -> The origin of the branch */ |
| 161 | if( memcmp(zTag, "root:", 5)==0 ){ |
| 162 | Stmt q; |
| 163 |