Fossil SCM

Rename subcommand to amend and clarify the usage in help output.

andybradford 2015-07-07 03:26 check-in-edit
Commit 7df56d1c14ba99321f6c80caad2e942adaeb725b
1 file changed +8 -6
+8 -6
--- src/info.c
+++ src/info.c
@@ -2705,28 +2705,30 @@
27052705
@ </div></form>
27062706
style_footer();
27072707
}
27082708
27092709
/*
2710
-** COMMAND: edit
2710
+** COMMAND: amend
2711
+**
2712
+** Usage: %fossil amend UUID ?OPTIONS?
27112713
**
2712
-** Usage: %fossil edit UUID ?OPTIONS?
2714
+** Amend the tags on check-in UUID to change how it displays in the timeline.
27132715
**
27142716
** Options:
27152717
**
27162718
** --euser USER Make USER the check-in user
27172719
** --comment COMMENT Make COMMENT the check-in comment
27182720
** --date DATE Make DATE the check-in time
27192721
** --bgcolor COLOR Apply COLOR to this check-in
2720
-** --branchcolor COLOR Apply COLOR to the branch
2722
+** --branchcolor COLOR Apply and propagate COLOR to the branch
27212723
** --tag TAG Add new TAG to this check-in
27222724
** --cancel TAG Cancel TAG from this check-in
27232725
** --branch NAME Make this check-in the start of branch NAME
27242726
** --hide Hide branch starting from this check-in
27252727
** --close Mark this "leaf" as closed
27262728
*/
2727
-void ci_edit_cmd(void){
2729
+void ci_amend_cmd(void){
27282730
int rid;
27292731
const char *zComment; /* Current comment on the check-in */
27302732
const char *zNewComment; /* Revised check-in comment */
27312733
const char *zUser; /* Current user for the check-in */
27322734
const char *zNewUser; /* Revised user */
@@ -2738,12 +2740,12 @@
27382740
const char *zNewTag;
27392741
const char *zNewBranch;
27402742
const char *zCancelTag;
27412743
int fClose; /* True if leaf should be closed */
27422744
int fHide; /* True if branch should be hidden */
2743
- int fPropagateColor; /* True if color propagates before edit */
2744
- int fNewPropagateColor = 0; /* True if color propagates after edit */
2745
+ int fPropagateColor; /* True if color propagates before amend */
2746
+ int fNewPropagateColor = 0; /* True if color propagates after amend */
27452747
const char *zChngTime; /* The change time on the control artifact */
27462748
const char *zUuid;
27472749
Blob ctrl;
27482750
char *zNow;
27492751
27502752
--- src/info.c
+++ src/info.c
@@ -2705,28 +2705,30 @@
2705 @ </div></form>
2706 style_footer();
2707 }
2708
2709 /*
2710 ** COMMAND: edit
 
 
2711 **
2712 ** Usage: %fossil edit UUID ?OPTIONS?
2713 **
2714 ** Options:
2715 **
2716 ** --euser USER Make USER the check-in user
2717 ** --comment COMMENT Make COMMENT the check-in comment
2718 ** --date DATE Make DATE the check-in time
2719 ** --bgcolor COLOR Apply COLOR to this check-in
2720 ** --branchcolor COLOR Apply COLOR to the branch
2721 ** --tag TAG Add new TAG to this check-in
2722 ** --cancel TAG Cancel TAG from this check-in
2723 ** --branch NAME Make this check-in the start of branch NAME
2724 ** --hide Hide branch starting from this check-in
2725 ** --close Mark this "leaf" as closed
2726 */
2727 void ci_edit_cmd(void){
2728 int rid;
2729 const char *zComment; /* Current comment on the check-in */
2730 const char *zNewComment; /* Revised check-in comment */
2731 const char *zUser; /* Current user for the check-in */
2732 const char *zNewUser; /* Revised user */
@@ -2738,12 +2740,12 @@
2738 const char *zNewTag;
2739 const char *zNewBranch;
2740 const char *zCancelTag;
2741 int fClose; /* True if leaf should be closed */
2742 int fHide; /* True if branch should be hidden */
2743 int fPropagateColor; /* True if color propagates before edit */
2744 int fNewPropagateColor = 0; /* True if color propagates after edit */
2745 const char *zChngTime; /* The change time on the control artifact */
2746 const char *zUuid;
2747 Blob ctrl;
2748 char *zNow;
2749
2750
--- src/info.c
+++ src/info.c
@@ -2705,28 +2705,30 @@
2705 @ </div></form>
2706 style_footer();
2707 }
2708
2709 /*
2710 ** COMMAND: amend
2711 **
2712 ** Usage: %fossil amend UUID ?OPTIONS?
2713 **
2714 ** Amend the tags on check-in UUID to change how it displays in the timeline.
2715 **
2716 ** Options:
2717 **
2718 ** --euser USER Make USER the check-in user
2719 ** --comment COMMENT Make COMMENT the check-in comment
2720 ** --date DATE Make DATE the check-in time
2721 ** --bgcolor COLOR Apply COLOR to this check-in
2722 ** --branchcolor COLOR Apply and propagate COLOR to the branch
2723 ** --tag TAG Add new TAG to this check-in
2724 ** --cancel TAG Cancel TAG from this check-in
2725 ** --branch NAME Make this check-in the start of branch NAME
2726 ** --hide Hide branch starting from this check-in
2727 ** --close Mark this "leaf" as closed
2728 */
2729 void ci_amend_cmd(void){
2730 int rid;
2731 const char *zComment; /* Current comment on the check-in */
2732 const char *zNewComment; /* Revised check-in comment */
2733 const char *zUser; /* Current user for the check-in */
2734 const char *zNewUser; /* Revised user */
@@ -2738,12 +2740,12 @@
2740 const char *zNewTag;
2741 const char *zNewBranch;
2742 const char *zCancelTag;
2743 int fClose; /* True if leaf should be closed */
2744 int fHide; /* True if branch should be hidden */
2745 int fPropagateColor; /* True if color propagates before amend */
2746 int fNewPropagateColor = 0; /* True if color propagates after amend */
2747 const char *zChngTime; /* The change time on the control artifact */
2748 const char *zUuid;
2749 Blob ctrl;
2750 char *zNow;
2751
2752

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button