[issue363] "hg cat filename" defaults to tip instead of the parent
Dean Roehrich
dean.roehrich at sun.com
Thu Sep 7 18:34:25 UTC 2006
On Thu, Sep 07, 2006 at 07:16:29PM +0200, Rafael Villar Burke wrote:
> Dean Roehrich wrote:
> >On Thu, Sep 07, 2006 at 08:32:09AM -0700, Brendan Cully wrote:
> >
> >>Benoit probably meant "parent of the working directory." That is, hg
> >>cat should default to using the revision that's currently checked out.
> >>
> >
> >Thanks, that helps.
> >
> >In mercurial-speak, does the word 'parent' always refer to a file? When
> >you
> >say "parent of the working directory" I think of dot-dot; just as "parent
> >of
> >the repo" makes me think of another repo.
> Parent of the working dir is the parent changeset of the working dir.
> When you "update" the repo to a changeset you're changing the working
> dir parent.
So the expression "working dir" is equivalent to terms like "workarea" or
"workspace", rather than referring to $PWD.
Still, I would expect expressions like "parent of the working dir" or "parent
of the repo" to refer to a repo rather than to a file.
Dean
More information about the Mercurial
mailing list