[issue363] "hg cat filename" defaults to tip instead of the parent
Dean Roehrich
dean.roehrich at sun.com
Thu Sep 7 16:05:21 UTC 2006
On Thu, Sep 07, 2006 at 08:32:09AM -0700, Brendan Cully wrote:
> On Thursday, 07 September 2006 at 09:46, Dean Roehrich wrote:
> > On Wed, Sep 06, 2006 at 10:47:55PM +0000, Benoit Boissinot wrote:
> > >
> > > New submission from Benoit Boissinot <bboissin at gmail.com>:
> > >
> > > "hg cat filename" defaults to the tip if you don't specify a revision. it should
> > > default to the
> > > parent of the repo
> >
> > Benoit, would you elaborate, please? My first reaction is that I would expect
> > tip to be the default. Having the default go to the parent-of-the-repo would
> > potentially mean going over the wire which might be an unexpected surprise
> > during disconnected operation or when the last pull was directed to something
> > other than what is listed in the .hg/hgrc file.
> >
> > My second reaction is that I'm misunderstanding your intent.
>
> 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.
Dean
More information about the Mercurial
mailing list