Fossil SCM

Fix the test-content-undelta command.

drh 2016-01-18 03:07 trunk
Commit 786017890d282e42abdb4ac9c4cf3b2fc654d0db
1 file changed +1 -1
+1 -1
--- src/content.c
+++ src/content.c
@@ -709,11 +709,11 @@
709709
**
710710
** Make sure the content at RECORDID is not a delta
711711
*/
712712
void test_content_undelta_cmd(void){
713713
int rid;
714
- if( g.argc!=2 ) usage("RECORDID");
714
+ if( g.argc!=3 ) usage("RECORDID");
715715
db_must_be_within_tree();
716716
rid = atoi(g.argv[2]);
717717
content_undelta(rid);
718718
}
719719
720720
--- src/content.c
+++ src/content.c
@@ -709,11 +709,11 @@
709 **
710 ** Make sure the content at RECORDID is not a delta
711 */
712 void test_content_undelta_cmd(void){
713 int rid;
714 if( g.argc!=2 ) usage("RECORDID");
715 db_must_be_within_tree();
716 rid = atoi(g.argv[2]);
717 content_undelta(rid);
718 }
719
720
--- src/content.c
+++ src/content.c
@@ -709,11 +709,11 @@
709 **
710 ** Make sure the content at RECORDID is not a delta
711 */
712 void test_content_undelta_cmd(void){
713 int rid;
714 if( g.argc!=3 ) usage("RECORDID");
715 db_must_be_within_tree();
716 rid = atoi(g.argv[2]);
717 content_undelta(rid);
718 }
719
720

Keyboard Shortcuts

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