[Python-apps-team] Bug#552423: Reserved revnos aren't.
Trent W. Buck
trentbuck at gmail.com
Mon Oct 26 07:00:52 UTC 2009
Package: mercurial
Version: 1.3.1-1
Severity: normal
Apparently "tip", "null" and "." are reserved revision strings. But
"hg branch" doesn't stop you using them as normal branch names:
$ hg init
$ hg help revisions | grep reserved
The reserved name "tip" is a special tag that always identifies
The reserved name "null" indicates the null revision. This is the
The reserved name "." indicates the working directory parent. If
$ for i in tip null .; do hg branch $i; hg ci -m $i; done
marked working directory as branch tip
marked working directory as branch null
marked working directory as branch .
$ hg branches
. 2:8161069982f6
null 1:88bb6444027e (inactive)
tip 0:ac0a4b021d5c (inactive)
I happened to notice this when a co-worker accidentally created a tag
and a branch with the same name, and "hg update release-1.2.3" took me
to the tag instead of the branch. I was very confused for a while,
because "hg fetch" claimed I wasn't at a branch head.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mercurial depends on:
ii libc6 2.9-25 GNU C Library: Shared libraries
ii mercurial-common 1.3.1-1 scalable distributed version contr
ii python 2.5.4-2 An interactive high-level object-o
ii python-support 1.0.4 automated rebuilding support for P
ii ucf 3.0022 Update Configuration File: preserv
mercurial recommends no packages.
Versions of packages mercurial suggests:
ii emacs 23.1+1-4 The GNU Emacs editor (metapackage)
pn kdiff3 | tkdiff | meld | xxdi <none> (no description available)
pn qct <none> (no description available)
pn wish <none> (no description available)
-- no debconf information
More information about the Python-apps-team
mailing list