update -r $old_version, what now tells me $old_version?

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Apr 26 08:42:36 CDT 2007


On 2007-04-26 09:19, Allan Wind <allan_wind at lifeintegrity.com> wrote:
> I update to an old version with update -r $old_version and now do
> some changes.  What tells me $old_version?  This can be done via a
> clone -r $old_version and then tip tells me what I was looking for.

Does "hg id" or "hg parents" help at all?

  $ pwd
  home/keramida/hg/mercurial/crew
  $ hg up -C 4374
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
  $ hg id
  de612b5f8d59
  $ hg parents --template '{rev}:{node|short}\n'
  4374:de612b5f8d59
  $ hg parents
  changeset:   4374:de612b5f8d59
  user:        Brendan Cully <brendan at kublai.com>
  date:        Tue Apr 24 18:43:18 2007 -0700
  summary:     Make copy --after work for files that have been hg added.

  $


More information about the Mercurial mailing list