[Bug 5579] New: incorrect 'subdir not under root' when using `hg log` with -R and -I

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue May 30 06:01:00 UTC 2017


https://bz.mercurial-scm.org/show_bug.cgi?id=5579

            Bug ID: 5579
           Summary: incorrect 'subdir not under root' when using `hg log`
                    with -R and -I
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: byron at glob.com.au
                CC: mercurial-devel at mercurial-scm.org

Created attachment 1964
  --> https://bz.mercurial-scm.org/attachment.cgi?id=1964&action=edit
hg-log-R-I.sh

running `hg log` while specifying both the repository root with -R and and
include pattern with -I results in the following error:

> abort: subdir not under root '/Users/byron/Desktop/hg-chdir/test-repo'
> (consider using '--cwd test-repo')

this error message is incorrect as the subdir does exist under the specified
root.

calling with --cwd works, as does setting the current working directory prior
to calling `hg log`.

unfortunately --cwd isn't available when using the cmdserver, and i'd like to
avoid the need to os.chdir() in a utility method.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list