Fossil

Check-in [81da7b0024]
Login

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

Overview
Comment:Correct [fossil finfo -n 0] to have no limit, in accordance with documentation. Update documentation to mention that negative numbers also have no limit and that unlimited is the default.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 81da7b0024a51b945acc1129f11c6741d06f0a1d
User & Date: andygoth 2015-03-05 19:18:35.811
Context
2015-03-05
19:51
Swap single-/double-dash convention in [fossil help help] listing to match the other commands. Use single-dash for single-letter option names and double-dash for long option names. (Truth is that either is accepted; this is merely a display issue.) check-in: 03e1850bf1 user: andygoth tags: trunk
19:18
Correct [fossil finfo -n 0] to have no limit, in accordance with documentation. Update documentation to mention that negative numbers also have no limit and that unlimited is the default. check-in: 81da7b0024 user: andygoth tags: trunk
17:22
Add 'unicodeCmdLine' option to the TH1 'hasfeature' command. check-in: edb8237f06 user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/finfo.c.
41
42
43
44
45
46
47
48

49
50
51
52
53
54
55
** to stdout.  The -p mode is another form of the "cat" command.
**
** Options:
**   -b|--brief           display a brief (one line / revision) summary
**   --case-sensitive B   Enable or disable case-sensitive filenames.  B is a
**                        boolean: "yes", "no", "true", "false", etc.
**   -l|--log             select log mode (the default)
**   -n|--limit N         display the first N changes. N=0 means no limit.

**   --offset P           skip P changes
**   -p|--print           select print mode
**   -r|--revision R      print the given revision (or ckout, if none is given)
**                        to stdout (only in print mode)
**   -s|--status          select status mode (print a status indicator for FILE)
**   -W|--width <num>     Width of lines (default is to auto-detect). Must be
**                        >22 or 0 (= no limit, resulting in a single line per







|
>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
** to stdout.  The -p mode is another form of the "cat" command.
**
** Options:
**   -b|--brief           display a brief (one line / revision) summary
**   --case-sensitive B   Enable or disable case-sensitive filenames.  B is a
**                        boolean: "yes", "no", "true", "false", etc.
**   -l|--log             select log mode (the default)
**   -n|--limit N         Display the first N changes (default unlimited).
**                        N<=0 means no limit.
**   --offset P           skip P changes
**   -p|--print           select print mode
**   -r|--revision R      print the given revision (or ckout, if none is given)
**                        to stdout (only in print mode)
**   -s|--status          select status mode (print a status indicator for FILE)
**   -W|--width <num>     Width of lines (default is to auto-detect). Must be
**                        >22 or 0 (= no limit, resulting in a single line per
153
154
155
156
157
158
159



160
161
162
163
164
165
166
    }
    zLimit = find_option("limit","n",1);
    zWidth = find_option("width","W",1);
    iLimit = zLimit ? atoi(zLimit) : -1;
    zOffset = find_option("offset",0,1);
    iOffset = zOffset ? atoi(zOffset) : 0;
    iBrief = (find_option("brief","b",0) == 0);



    if( zWidth ){
      iWidth = atoi(zWidth);
      if( (iWidth!=0) && (iWidth<=22) ){
        fossil_fatal("-W|--width value must be >22 or 0");
      }
    }else{
      iWidth = -1;







>
>
>







154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
    }
    zLimit = find_option("limit","n",1);
    zWidth = find_option("width","W",1);
    iLimit = zLimit ? atoi(zLimit) : -1;
    zOffset = find_option("offset",0,1);
    iOffset = zOffset ? atoi(zOffset) : 0;
    iBrief = (find_option("brief","b",0) == 0);
    if( iLimit==0 ){
      iLimit = -1;
    }
    if( zWidth ){
      iWidth = atoi(zWidth);
      if( (iWidth!=0) && (iWidth<=22) ){
        fossil_fatal("-W|--width value must be >22 or 0");
      }
    }else{
      iWidth = -1;