Dan Christensen
2005-07-17 01:54:19 UTC
I was a bit surprised to find that if I have uncommitted changes in
the working directory, and I run "hg import file.patch", my
uncommitted changes are committed along with the changes in the
patch. I expected behaviour more like "hg pull", which applies the
changes to the repository, so I would then have to "hg update" and
the merge would get recorded as a separate piece of history.
Alternatively, "hg import" could just abort if there are uncommitted
changes, unless given a "--force" flag.
Is the current "hg import" behaviour intentional?
Dan
the working directory, and I run "hg import file.patch", my
uncommitted changes are committed along with the changes in the
patch. I expected behaviour more like "hg pull", which applies the
changes to the repository, so I would then have to "hg update" and
the merge would get recorded as a separate piece of history.
Alternatively, "hg import" could just abort if there are uncommitted
changes, unless given a "--force" flag.
Is the current "hg import" behaviour intentional?
Dan