regression ? hg update --check

9 views
Skip to first unread message

ant4hg

unread,
Aug 22, 2012, 12:32:32 AM8/22/12
to merc...@selenic.com
Hi all,

I'm testing ant4hg project (http://ant4hg.free.fr/) with last release of hg.
This project have antunit tests to prevent regressions.

I notice different behavior between hg1.9.2 and hg2.3.
Is that a regression ?

Regards,
Benjamin

===== mercurial V1.9.2 =====
$ hg version
Mercurial Distributed SCM (version 1.9.2)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2011 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ hg init
$ touch file1A.txt
$ hg add file1A.txt
$ hg commit -m 'test'
$ hg help commit
$ hg commit -m 'test' -u 'bdd'
$ rm file1A.txt
$ hg update -c
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls
file1A.txt

===== mercurial V2.3 (which does not print version !) =====
$ hg version
Mercurial Distributed SCM (version unknown)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ hg init
$ touch file1A.txt
$ hg add file1A.txt
$ hg commit -m 'test'
$ hg help commit
$ hg commit -m 'test' -u 'bdd'
$ rm file1A.txt
$ hg update -c
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

Mads Kiilerich

unread,
Aug 22, 2012, 4:57:51 AM8/22/12
to ant4hg, merc...@selenic.com
On 22/08/12 06:32, ant4hg wrote:
> I notice different behavior between hg1.9.2 and hg2.3.

$ hg init
$ touch file1A.txt
$ hg add file1A.txt
$ hg commit -m 'test'
$ rm file1A.txt
$ hg update -c
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls
file1A.txt

> Is that a regression ?

It is an unannounced behavioural change introduced in
http://selenic.com/repo/hg/rev/914bc95e227b and released in 2.2. I looks
like a regression.

I guess someone will pick it up from here and fix it, but filing it in
the bug tracker would be better.

/Mads

_______________________________________________
Mercurial mailing list
Merc...@selenic.com
http://selenic.com/mailman/listinfo/mercurial

Matt Mackall

unread,
Aug 22, 2012, 3:21:03 PM8/22/12
to Mads Kiilerich, merc...@selenic.com, ant4hg
On Wed, 2012-08-22 at 10:57 +0200, Mads Kiilerich wrote:
> On 22/08/12 06:32, ant4hg wrote:
> > I notice different behavior between hg1.9.2 and hg2.3.
>
> $ hg init
> $ touch file1A.txt
> $ hg add file1A.txt
> $ hg commit -m 'test'
> $ rm file1A.txt
> $ hg update -c
> 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> $ ls
> file1A.txt
>
> > Is that a regression ?
>
> It is an unannounced behavioural change introduced in
> http://selenic.com/repo/hg/rev/914bc95e227b and released in 2.2. I looks
> like a regression.

Indeed.

> I guess someone will pick it up from here and fix it, but filing it in
> the bug tracker would be better.

If the default someone is presumed to be me, then yes, it definitely
needs to go in the BTS to not be forgotten, given my current backlog.

--
Mathematics is the supreme nostalgia of our time.

Benjamin DE DARDEL

unread,
Aug 22, 2012, 4:02:53 PM8/22/12
to Matt Mackall, merc...@selenic.com
Ok, I reported bug: http://bz.selenic.com/show_bug.cgi?id=3595

Regards,
Benjamin

Notice that antunit tests may be interesting to prevent hg regressions,
see: http://ant4hg.hg.sourceforge.net/hgweb/ant4hg/ant4hg/file/180229b3138a/tests/
Ant4Hg new contributors are welcome.


2012/8/22 Matt Mackall <m...@selenic.com>:
Reply all
Reply to author
Forward
0 new messages