[PATCH 1 of 3 V2] dirstate._walkexplicit: indicate root as '.', not ''
Siddharth Agarwal
sid0 at fb.com
Mon Mar 30 06:36:11 UTC 2015
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1427696845 25200
# Sun Mar 29 23:27:25 2015 -0700
# Node ID 6cd9f346c8c947a0aad24d1742a91683a939bfec
# Parent efa094701a05d58d505c3b0c3b3c73dba4e51e97
dirstate._walkexplicit: indicate root as '.', not ''
'.' is the canonical way to represent the root, and it's apparently the only
transformation that normpath makes.
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -629,7 +629,7 @@
j += 1
if not files or '.' in files:
- files = ['']
+ files = ['.']
results = dict.fromkeys(subrepos)
results['.hg'] = None
More information about the Mercurial-devel
mailing list