A Scalable, User-Friendly Source Control System.
Go to file
Alexis S. L. Carvalho a345c2c9da merge: forcefully mark files that we get from the second parent as dirty
After a hg merge, we want to include in the commit all the files that we
got from the second parent, so that we have the correct file-level
history.  To make them visible to hg commit, we try to mark them as dirty.

Unfortunately, right now we can't really mark them as dirty[1] - the
best we can do is to mark them as needing a full comparison of their
contents, but they will still be considered clean if they happen to be
identical to the version in the first parent.

This changeset extends the dirstate format in a compatible way, so that
we can mark a file as dirty:

Right now we use a negative file size to indicate we don't have valid
stat data for this entry.  In practice, this size is always -1.

This patch uses -2 to indicate that the entry is dirty.  Older versions
of hg won't choke on this dirstate, but they may happily mark the file
as clean after a full comparison, destroying all of our hard work.

The patch adds a dirstate.normallookup method with the semantics of the
current normaldirty, and changes normaldirty to forcefully mark the
entry as dirty.

This should fix issue522.

[1] - well, we could put them in state 'm', but that state has a
different meaning.
2007-08-23 01:48:29 -03:00
contrib Enable demandimport only in scripts, not in importable modules (issue605) 2007-08-18 11:37:08 +02:00
doc gendoc: use demandimport 2007-08-20 21:10:45 -05:00
hgext merge: forcefully mark files that we get from the second parent as dirty 2007-08-23 01:48:29 -03:00
mercurial merge: forcefully mark files that we get from the second parent as dirty 2007-08-23 01:48:29 -03:00
templates gitweb: add notfound template 2007-07-05 19:47:04 -07:00
tests merge: forcefully mark files that we get from the second parent as dirty 2007-08-23 01:48:29 -03:00
.hgignore Ignore mergebackup files generated by mpatch 2007-07-26 13:38:20 -07:00
.hgsigs Added signature for changeset e64b8d651071183a358d6f98136eb08450366023 2007-06-25 21:23:24 -05:00
CONTRIBUTORS Add self to contributors 2006-08-18 15:03:16 -07:00
COPYING Add COPYING 2005-06-17 09:32:13 -08:00
hg Enable demandimport only in scripts, not in importable modules (issue605) 2007-08-18 11:37:08 +02:00
hgeditor hgeditor: Use $HG to run 'hg diff' (see 9779a8c8d672) 2007-06-23 20:22:17 +02:00
hgmerge Use smerge minor mode in emacs to resolve conflicts. 2007-08-15 17:27:51 +02:00
hgweb.cgi Enable demandimport only in scripts, not in importable modules (issue605) 2007-08-18 11:37:08 +02:00
hgwebdir.cgi Enable demandimport only in scripts, not in importable modules (issue605) 2007-08-18 11:37:08 +02:00
Makefile Makefile: remove *.pyd files on "make clean". 2007-06-25 14:46:20 +02:00
README Move README info to wiki 2006-12-19 17:17:08 -06:00
setup.py Enable demandimport only in scripts, not in importable modules (issue605) 2007-08-18 11:37:08 +02:00

Basic install:

 $ make            # see install targets
 $ make install    # do a system-wide install
 $ hg debuginstall # sanity-check setup
 $ hg              # see help

See http://www.selenic.com/mercurial/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.