Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a cloned mercurial repository (and working copy) in my own machine. Is it possible if I want to know the parent path to a specific file? For example, I cloned a repository that contains a file at


and file_a is located in my machine at


Is there a command that I can use to get the parent path (the first url) of file_a ??!

share|improve this question

hg paths will show the repository path, and hg root your current repository. I think you'd have to do the path munging yourself, however.

I understand hg extensions can be as simple as a python file, so might be easy to write yourself.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .