Fossil

Check-in [07783301]
Login

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

Overview
Comment:Correct reparent usage information
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:07783301bdf772156d4dfb070f8427c4cbd065c10167022d1b6e0a2870eb5455
User & Date: andygoth 2017-04-13 20:42:06
Original User & Date: andy 2017-04-13 20:42:06
Context
2017-04-18
18:40
Index xmark(trid), otherwise writing the mark file can take hours. check-in: 48d466ab user: joerg tags: trunk
2017-04-14
22:40
Added a new document describing the details of the GLOB syntax used with many settings. Updated the permuted index generator (and the index) to include it. check-in: b96f86c6 user: rberteig tags: glob-docs
2017-04-13
20:42
Correct reparent usage information check-in: 07783301 user: andygoth tags: trunk
2017-04-12
18:40
Fix a typo on the aboutdownload.wiki documentation page. check-in: f2e9eeb1 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/tag.c.

585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
...
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
tag_cmd_usage:
  usage("add|cancel|find|list ...");
}

/*
** COMMAND: reparent*
**
** Usage: %fossil reparent [OPTIONS] CHECK-IN PARENT ....
**
** Create a "parent" tag that causes CHECK-IN to be interpreted as a
** child of PARENT.  If multiple PARENTs are listed, then the first is
** the primary parent and others are merge ancestors.
**
** This is an experts-only command.  It is used to patch up a repository
** that has been damaged by a shun or that has been pieced together from
................................................................................
  char *zUuid;
  int dryRun = 0;

  if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN;
  db_find_and_open_repository(0, 0);
  verify_all_options();
  if( g.argc<4 ){
    usage("reparent [OPTIONS] PARENT ...");
  }
  rid = name_to_typed_rid(g.argv[2], "ci");
  blob_init(&value, 0, 0);
  for(i=3; i<g.argc; i++){
    int pid = name_to_typed_rid(g.argv[i], "ci");
    if( i>3 ) blob_append(&value, " ", 1);
    zUuid = rid_to_uuid(pid);







|







 







|







585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
...
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
tag_cmd_usage:
  usage("add|cancel|find|list ...");
}

/*
** COMMAND: reparent*
**
** Usage: %fossil reparent [OPTIONS] CHECK-IN PARENT ...
**
** Create a "parent" tag that causes CHECK-IN to be interpreted as a
** child of PARENT.  If multiple PARENTs are listed, then the first is
** the primary parent and others are merge ancestors.
**
** This is an experts-only command.  It is used to patch up a repository
** that has been damaged by a shun or that has been pieced together from
................................................................................
  char *zUuid;
  int dryRun = 0;

  if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN;
  db_find_and_open_repository(0, 0);
  verify_all_options();
  if( g.argc<4 ){
    usage("[OPTIONS] CHECK-IN PARENT ...");
  }
  rid = name_to_typed_rid(g.argv[2], "ci");
  blob_init(&value, 0, 0);
  for(i=3; i<g.argc; i++){
    int pid = name_to_typed_rid(g.argv[i], "ci");
    if( i>3 ) blob_append(&value, " ", 1);
    zUuid = rid_to_uuid(pid);