[Bug 6830] New: hg commands should not work when in a git (or any other CVS-DVCS) subrepo

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon Jun 26 15:02:42 UTC 2023


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

            Bug ID: 6830
           Summary: hg commands should not work when in a git (or any
                    other CVS-DVCS) subrepo
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: axel.prel at xcg-consulting.fr
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org
    Python Version: ---

lets say i have two projects working together. 
project A is my main project, versioned with hg. 
inside project A, i have a dependencies/ direcetory containing project B,
versioned in git. 
when i am at root and run hg log, i have the log from project A. 
then i run cd dependencies/projectB. here, when i do hg log, it still show me
the logs for project A, since B is not a hg project but a git one. 

Proposed - evolution : when working with subrepos of other DVCS, hg can detect
the .git and not run his commands when in a git subrepo. my optimal evolution
would be an error msg (hg can not run inside a git repo, and maybe some
contextual infos on where the actual hg repo is compared to where i am. 

It would make working with multi DVCS projects less a pain. i would get lost
less. 

Thanks you for your feedback, cant wait for the next Hg meetup 

axel prel

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


More information about the Mercurial-devel mailing list