[issue618] Changed file does not show up on status or commit
Jim Hague
mercurial-bugs at selenic.com
Thu Jul 5 06:02:46 CDT 2007
New submission from Jim Hague <jim.hague at acm.org>:
A commit of a new file or an update which changes a file and is followed
within the second by a change to that file will result in the file change not
being visible to status and commit.
This script will create a repository with a file with different contents to
the committed file, but which does not show on status or commit as changed.
mkdir hgtest
cd hgtest
hg init
echo "1.1.0" > buildno
hg add buildno
hg commit -m "Add buildno"
echo "1.1.1" > buildno
Now inspect the repository.
$ cd hgtest/
$ cat buildno
1.1.1
$ hg cat buildno
1.1.0
$ hg status
$ hg commit
nothing changed
The same effect can be produced with a change immediately after hg update if
the update changed the file content.
This somewhat unlikely series of operations comes from a driver I've been
doing for Anthill OS, an old continuous integration system.
----------
messages: 3437
nosy: bearcave
priority: bug
status: unread
title: Changed file does not show up on status or commit
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue618>
____________________________________________________
More information about the Mercurial-devel
mailing list