[issue2901] .hgsub on new repository does not take effect until commit
Alex Mayfield
bugs at mercurial.selenic.com
Wed Jul 13 15:06:17 CDT 2011
New submission from Alex Mayfield <alexmax2742 at gmail.com>:
Using Mercurial 1.9. The specific git subrepository doesn't matter, it just
so happens to be the one I was working with when I ran into this issue.
$ hg clone myrepo
$ cd myrepo
$ echo 'phonegap = [git]https://github.com/phonegap/phonegap.git' > .hgsub
$ hg add .hgsub
$ git checkout https://github.com/phonegap/phonegap.git phonegap
$ hg status
You will notice that there are tons of unversioned files.
$ hg commit -m 'Initial commit. Set up phonegap subrepo.'
$ hg status
Now everything looks peachy. From #mercurial:
15:57:33 <mpm> Still a bug. Can I get you to file an issue?
15:57:56 <AlexMax> mpm: Really? What is the expected output?
15:58:08 <AlexMax> should .hgsub take effect immediately without having to
be commited?
15:58:23 <mpm> For this purpose, I'd say yes.
15:58:33 <AlexMax> Okay, I'll file a bug then
15:58:48 <timeless> i think the .hgsub should appear dirty, but everything
else shouldn't
----------
messages: 16830
nosy: AlexMax
priority: bug
status: unread
title: .hgsub on new repository does not take effect until commit
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2901>
____________________________________________________
More information about the Mercurial-devel
mailing list