hg import when there are uncommitted changes

TK Soh teekaysoh at yahoo.com
Sun Jul 17 04:11:07 UTC 2005


--- Kevin Smith <yarcs at qualitycode.com> wrote:
> Dan Christensen wrote:
> > 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.
> 
> Strong agreement here. I think I would prefer the latter option, but I 
> don't have enough experience to be sure.

I feel that import should also behave like the pull command, which only adds
the changesets without updating the working files unless -u is specified. 

I probably won't mind if someone bank in the money for me without tell me, but
not with my changes ;-)



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



More information about the Mercurial mailing list