Fossil SCM

Change the relative-paths default to 'on', after feedback from the community.

ben 2011-08-14 07:13 ben-testing
Commit 42a830e76da3551fbbf411f2c098a5bf65c074e6
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -115,11 +115,11 @@
115115
** status report should be shown relative to the current
116116
** working directory.
117117
*/
118118
static int determine_cwd_relative_option()
119119
{
120
- int relativePaths = db_get_boolean("relative-paths", 0);
120
+ int relativePaths = db_get_boolean("relative-paths", 1);
121121
int absPathOption = find_option("abs-paths", 0, 0)!=0;
122122
int relPathOption = find_option("rel-paths", 0, 0)!=0;
123123
if( absPathOption ){ relativePaths = 0; }
124124
if( relPathOption ){ relativePaths = 1; }
125125
return relativePaths;
126126
--- src/checkin.c
+++ src/checkin.c
@@ -115,11 +115,11 @@
115 ** status report should be shown relative to the current
116 ** working directory.
117 */
118 static int determine_cwd_relative_option()
119 {
120 int relativePaths = db_get_boolean("relative-paths", 0);
121 int absPathOption = find_option("abs-paths", 0, 0)!=0;
122 int relPathOption = find_option("rel-paths", 0, 0)!=0;
123 if( absPathOption ){ relativePaths = 0; }
124 if( relPathOption ){ relativePaths = 1; }
125 return relativePaths;
126
--- src/checkin.c
+++ src/checkin.c
@@ -115,11 +115,11 @@
115 ** status report should be shown relative to the current
116 ** working directory.
117 */
118 static int determine_cwd_relative_option()
119 {
120 int relativePaths = db_get_boolean("relative-paths", 1);
121 int absPathOption = find_option("abs-paths", 0, 0)!=0;
122 int relPathOption = find_option("rel-paths", 0, 0)!=0;
123 if( absPathOption ){ relativePaths = 0; }
124 if( relPathOption ){ relativePaths = 1; }
125 return relativePaths;
126
+2 -2
--- src/db.c
+++ src/db.c
@@ -1741,11 +1741,11 @@
17411741
{ "manifest", 0, 0, 1, "off" },
17421742
{ "max-upload", 0, 25, 0, "250000" },
17431743
{ "mtime-changes", 0, 0, 0, "on" },
17441744
{ "pgp-command", 0, 32, 0, "gpg --clearsign -o " },
17451745
{ "proxy", 0, 32, 0, "off" },
1746
- { "relative-paths",0, 0, 0, "off" },
1746
+ { "relative-paths",0, 0, 0, "on" },
17471747
{ "repo-cksum", 0, 0, 0, "on" },
17481748
{ "self-register", 0, 0, 0, "off" },
17491749
{ "ssl-ca-location",0, 40, 0, "" },
17501750
{ "ssl-identity", 0, 40, 0, "" },
17511751
{ "ssh-command", 0, 32, 0, "" },
@@ -1857,11 +1857,11 @@
18571857
** the "http_proxy" environment variable is consulted.
18581858
** If the http_proxy environment variable is undefined
18591859
** then a direct HTTP connection is used.
18601860
**
18611861
** relative-paths When showing changes and extras, report paths relative
1862
-** to the current working directory. Default: "off"
1862
+** to the current working directory. Default: "on"
18631863
**
18641864
** repo-cksum Compute checksums over all files in each checkout
18651865
** as a double-check of correctness. Defaults to "on".
18661866
** Disable on large repositories for a performance
18671867
** improvement.
18681868
--- src/db.c
+++ src/db.c
@@ -1741,11 +1741,11 @@
1741 { "manifest", 0, 0, 1, "off" },
1742 { "max-upload", 0, 25, 0, "250000" },
1743 { "mtime-changes", 0, 0, 0, "on" },
1744 { "pgp-command", 0, 32, 0, "gpg --clearsign -o " },
1745 { "proxy", 0, 32, 0, "off" },
1746 { "relative-paths",0, 0, 0, "off" },
1747 { "repo-cksum", 0, 0, 0, "on" },
1748 { "self-register", 0, 0, 0, "off" },
1749 { "ssl-ca-location",0, 40, 0, "" },
1750 { "ssl-identity", 0, 40, 0, "" },
1751 { "ssh-command", 0, 32, 0, "" },
@@ -1857,11 +1857,11 @@
1857 ** the "http_proxy" environment variable is consulted.
1858 ** If the http_proxy environment variable is undefined
1859 ** then a direct HTTP connection is used.
1860 **
1861 ** relative-paths When showing changes and extras, report paths relative
1862 ** to the current working directory. Default: "off"
1863 **
1864 ** repo-cksum Compute checksums over all files in each checkout
1865 ** as a double-check of correctness. Defaults to "on".
1866 ** Disable on large repositories for a performance
1867 ** improvement.
1868
--- src/db.c
+++ src/db.c
@@ -1741,11 +1741,11 @@
1741 { "manifest", 0, 0, 1, "off" },
1742 { "max-upload", 0, 25, 0, "250000" },
1743 { "mtime-changes", 0, 0, 0, "on" },
1744 { "pgp-command", 0, 32, 0, "gpg --clearsign -o " },
1745 { "proxy", 0, 32, 0, "off" },
1746 { "relative-paths",0, 0, 0, "on" },
1747 { "repo-cksum", 0, 0, 0, "on" },
1748 { "self-register", 0, 0, 0, "off" },
1749 { "ssl-ca-location",0, 40, 0, "" },
1750 { "ssl-identity", 0, 40, 0, "" },
1751 { "ssh-command", 0, 32, 0, "" },
@@ -1857,11 +1857,11 @@
1857 ** the "http_proxy" environment variable is consulted.
1858 ** If the http_proxy environment variable is undefined
1859 ** then a direct HTTP connection is used.
1860 **
1861 ** relative-paths When showing changes and extras, report paths relative
1862 ** to the current working directory. Default: "on"
1863 **
1864 ** repo-cksum Compute checksums over all files in each checkout
1865 ** as a double-check of correctness. Defaults to "on".
1866 ** Disable on large repositories for a performance
1867 ** improvement.
1868
--- www/changes.wiki
+++ www/changes.wiki
@@ -6,13 +6,17 @@
66
* Added the "[/help/winsrv | fossil winsrv]" command
77
for creating a Fossil service on windows systems.
88
* Added "versionable settings" where settings that affect
99
the local tree can be stored in versioned files in the
1010
.fossil-settings directory.
11
- * Added "relative-paths" setting and options for status,
12
- changes and extras commands to optionally show pathnames
13
- relative to the current working directory.
11
+ * The status, changes and extras commands now show
12
+ pathnames relative to the current working directory,
13
+ unless overridden by command line options or the
14
+ "relative-paths" setting.<br><b>WARNING:</b> This
15
+ change will break scripts which rely on the current
16
+ output when the current working directory is not the
17
+ repository root.
1418
* Added "empty-dirs" versionable setting.
1519
* Added support for client-side SSL certificates with "ssl-identity"
1620
setting and --ssl-identity option.
1721
* Added "ssl-ca-location" setting to specify trusted root
1822
SSL certificates.
1923
--- www/changes.wiki
+++ www/changes.wiki
@@ -6,13 +6,17 @@
6 * Added the "[/help/winsrv | fossil winsrv]" command
7 for creating a Fossil service on windows systems.
8 * Added "versionable settings" where settings that affect
9 the local tree can be stored in versioned files in the
10 .fossil-settings directory.
11 * Added "relative-paths" setting and options for status,
12 changes and extras commands to optionally show pathnames
13 relative to the current working directory.
 
 
 
 
14 * Added "empty-dirs" versionable setting.
15 * Added support for client-side SSL certificates with "ssl-identity"
16 setting and --ssl-identity option.
17 * Added "ssl-ca-location" setting to specify trusted root
18 SSL certificates.
19
--- www/changes.wiki
+++ www/changes.wiki
@@ -6,13 +6,17 @@
6 * Added the "[/help/winsrv | fossil winsrv]" command
7 for creating a Fossil service on windows systems.
8 * Added "versionable settings" where settings that affect
9 the local tree can be stored in versioned files in the
10 .fossil-settings directory.
11 * The status, changes and extras commands now show
12 pathnames relative to the current working directory,
13 unless overridden by command line options or the
14 "relative-paths" setting.<br><b>WARNING:</b> This
15 change will break scripts which rely on the current
16 output when the current working directory is not the
17 repository root.
18 * Added "empty-dirs" versionable setting.
19 * Added support for client-side SSL certificates with "ssl-identity"
20 setting and --ssl-identity option.
21 * Added "ssl-ca-location" setting to specify trusted root
22 SSL certificates.
23

Keyboard Shortcuts

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