Fossil

Check-in [3d9c8751]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reverse ref name traversal because git refs may have forward-slashes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | git-import
Files: files | file ages | folders
SHA1:3d9c87516051528c54e476b8939d6deafd1e2b2a
User & Date: jmoger 2015-03-16 19:01:40
Context
2015-03-16
19:45
Fix an extraneous blank line in the previous check-in. Closed-Leaf check-in: bfbf3bfd user: drh tags: git-import
19:01
Reverse ref name traversal because git refs may have forward-slashes check-in: 3d9c8751 user: jmoger tags: git-import
14:25
Merge blitz enhancements to trunk. check-in: 127ee1f5 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/import.c.

514
515
516
517
518
519
520
521
522
523
524
525
526

527
528
529
530
531
532
533
      ** tag to the new commit.  However, if there are multiple instances
      ** of pattern B with the same TAGNAME, then only put the tag on the
      ** last commit that holds that tag.
      **
      ** None of the above is explained in the git-fast-export
      ** documentation.  We had to figure it out via trial and error.
      */
      for(i=strlen(z)-1; i>=0 && z[i]!='/'; i--){}
      gg.tagCommit = strncmp(&z[i-4], "tags", 4)==0;  /* True for pattern B */
      if( z[i+1]!=0 ) z += i+1;
      if( fossil_strcmp(z, "master")==0 ) z = "trunk";
      gg.zBranch = fossil_strdup(z);
      gg.fromLoaded = 0;

    }else
    if( strncmp(zLine, "tag ", 4)==0 ){
      gg.xFinish();
      gg.xFinish = finish_tag;
      trim_newline(&zLine[4]);
      gg.zTag = fossil_strdup(&zLine[4]);
    }else







|
|




>







514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
      ** tag to the new commit.  However, if there are multiple instances
      ** of pattern B with the same TAGNAME, then only put the tag on the
      ** last commit that holds that tag.
      **
      ** None of the above is explained in the git-fast-export
      ** documentation.  We had to figure it out via trial and error.
      */
      for(i=5; i<strlen(z) && z[i]!='/'; i++){}
      gg.tagCommit = strncmp(&z[5], "tags", 4)==0;  /* True for pattern B */
      if( z[i+1]!=0 ) z += i+1;
      if( fossil_strcmp(z, "master")==0 ) z = "trunk";
      gg.zBranch = fossil_strdup(z);
      gg.fromLoaded = 0;

    }else
    if( strncmp(zLine, "tag ", 4)==0 ){
      gg.xFinish();
      gg.xFinish = finish_tag;
      trim_newline(&zLine[4]);
      gg.zTag = fossil_strdup(&zLine[4]);
    }else