Show More
@@ -991,6 +991,8 b' def _getlocal(ui, rpath, wd=None):' | |||||
991 | lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path) |
|
991 | lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path) | |
992 |
|
992 | |||
993 | if rpath: |
|
993 | if rpath: | |
|
994 | if wd is not None: | |||
|
995 | rpath = os.path.join(wd, rpath) | |||
994 | path = urlutil.get_clone_path(lui, rpath)[0] |
|
996 | path = urlutil.get_clone_path(lui, rpath)[0] | |
995 | lui = ui.copy() |
|
997 | lui = ui.copy() | |
996 | if rcutil.use_repo_hgrc(): |
|
998 | if rcutil.use_repo_hgrc(): |
@@ -433,6 +433,15 b' check server log:' | |||||
433 | YYYY/MM/DD HH:MM:SS (PID)> log -R cached |
|
433 | YYYY/MM/DD HH:MM:SS (PID)> log -R cached | |
434 | YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s) |
|
434 | YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s) | |
435 |
|
435 | |||
|
436 | -R is interpreted relative to --cwd | |||
|
437 | ||||
|
438 | $ hg init repo1 | |||
|
439 | $ hg init repo2 | |||
|
440 | $ printf "[alias]\nx=y\n" >> repo1/.hg/hgrc | |||
|
441 | $ printf "[alias]\nx=z\n" >> repo2/.hg/hgrc | |||
|
442 | $ (cd repo1; chg --cwd ../repo2 -R . show alias.x) | |||
|
443 | z | |||
|
444 | ||||
436 | Test that chg works (sets to the user's actual LC_CTYPE) even when python |
|
445 | Test that chg works (sets to the user's actual LC_CTYPE) even when python | |
437 | "coerces" the locale (py3.7+) |
|
446 | "coerces" the locale (py3.7+) | |
438 |
|
447 | |||
@@ -537,3 +546,4 b" FIXME: Run 4 should not be >3x Run 1's n" | |||||
537 | $ filteredchg log -r . --no-profile |
|
546 | $ filteredchg log -r . --no-profile | |
538 | $ filteredchg log -r . |
|
547 | $ filteredchg log -r . | |
539 | Sample count: * (glob) |
|
548 | Sample count: * (glob) | |
|
549 | $ cd ../ |
General Comments 0
You need to be logged in to leave comments.
Login now