[issue1568] hg update cares too much about unversioned directories

Jeff Goldschrafe mercurial-bugs at selenic.com
Mon Mar 23 15:19:23 CDT 2009


New submission from Jeff Goldschrafe <goldschr at cshl.edu>:

This is a complex issue to describe, so let me give some rather verbose background:

I'm a system administrator. Currently, we have a number of systems using
Subversion for revision control. These systems each have a single working
directory located at /, and have multiple locations (/etc, /var/whatever,
/usr/local/etc, /opt/someprogram/config, and so on) versioned, and all other
files unversioned. Commits go to a central server, so we can browse them all
with Redmine.

This was my method for converting from SVN to Hg for each system:

On the server:
- Ensure that the Subversion repos being converted are all completely up-to-date
- hgimportsvn the old SVN to the new Hg repo
- hgpullsvn the history to the new repo

On the client:
- Nuke all .svn directories belonging to the repo
- cd / && hg init
- hg pull from the central server
- metastore -sm to save permissions and other metadata
- hg update -C to make the working directory happy and commitable (this
shouldn't overwrite any data since the file contents are the same)
- metastore -am to restore saved metadata after Mercurial clobbers it

Background out of the way, here's the problem: hg update keeps sifting through
subdirectories of my working directory for no particular reason, even though
those directories aren't versioned. In my case, I'm having the update repeatedly
stop because hg update keeps trying to dig through /proc, and it bombs out when
it can't find /proc/<pid>/something:

    abort: No such file or directory: /proc/20403/task/20403/fd/3

I think that during an update, Mercurial should only be concerned with the files
that are versioned, and their equivalents on the local filesystem, and shouldn't
be trying to traverse the filesystem on its own as it might with hg status. As
there's not much real reason to do that, I think it should be considered a bug.

----------
messages: 8882
nosy: jgoldschrafe
priority: bug
status: unread
title: hg update cares too much about unversioned directories

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1568>
____________________________________________________



More information about the Mercurial-devel mailing list