[Python-apps-team] Bug#695143: mercurial removes directory when removing the last contained file.

g1 g1pi at libero.it
Tue Dec 4 15:44:41 UTC 2012


Package: mercurial
Version: 1.6.4-1
Severity: normal


If I "hg remove" the last file in a directory, mercurial removes
the directory on commit (see below). 

Perhaps it's an upstream bug.

Perhaps it's a feature documented in the Definitive Guide, but I
won't buy the book just to check this, and the online version at
http://hgbook.red-bean.com/read/ is barely usable.

Script started on Tue Dec  4 16:21:35 2012
| $ hg init
| $ mkdir d
| $ echo a > d/a
| $ hg add d/a
| $ hg commit -m file_created 
| $ ls -s d
| total 4
| 4 a
| $ hg manifest -v
| 644   d/a
| $ hg rm d/a
| $ hg commit -m file_removed
| $ ls -s d
| ls: cannot access d: No such file or directory
Script done on Tue Dec  4 16:23:16 2012


-- System Information:
Debian Release: 6.0.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages mercurial depends on:
pi  libc6                   2.11.3-4         Embedded GNU C Library: Shared lib
pi  mercurial-common        1.6.4-1          scalable distributed version contr
pi  python                  2.6.6-3+squeeze7 interactive high-level object-orie
pi  python-support          1.0.10           automated rebuilding support for P
pi  ucf                     3.0025+nmu1      Update Configuration File: preserv

mercurial recommends no packages.

Versions of packages mercurial suggests:
pi  emacs        23.2+1-7                    The GNU Emacs editor (metapackage)
pn  kdiff3 | tkd <none>                      (no description available)
pn  qct          <none>                      (no description available)
pi  tk8.5 [wish] 8.5.8-1                     Tk toolkit for Tcl and X11, v8.5 -
pi  vim          2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor

-- no debconf information



More information about the Python-apps-team mailing list