[issue2992] single rev for revision 0 returns working directory
Simon Heimberg
bugs at mercurial.selenic.com
Thu Sep 8 10:24:01 CDT 2011
New submission from Simon Heimberg <simohe at besonet.ch>:
The line
if not revspec:
in function revsingle in scmutil.py is wrong. (See line in source:
http://hg.intevation.org/mercurial/crew/file/650d81a313cb/mercurial/scmutil.py#l474
)
This line is also true for 0.
lets fix this to
if not revspec and revspec != 0:
Whith this line the empty string is still matched.
And lets add a test for this!
I will send a patch, hopefully soon.
original submitted bug:
https://bitbucket.org/tortoisehg/thg/issue/1202/save-at-revision-for-revision-0-saves-the
----------
assignedto: simohe
messages: 17328
nosy: simohe
priority: bug
status: unread
title: single rev for revision 0 returns working directory
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2992>
____________________________________________________
More information about the Mercurial-devel
mailing list