2

That is, does Mercurial have a command to tell where it was originally cloned from?

The following question seems to not serve that purpose: Mercurial repository identification

Stefanie Gauss
  • 425
  • 3
  • 9

1 Answers1

1

I can't recall special command for it, just because I always read repo's hgrc [paths] section by eye due to fact (hg help config)

The following special named paths exist:

"default"
   The URL or directory to use when no source or remote is specified.

   'hg clone' will automatically define this path to the location the
   repository was cloned from.

but if you want hg command and trust hgrc's content (which can be edited at any time), you can use hg config paths.default which output key from repo-config, without warranties of using this URL for the whole lifetime of repo

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110