Cannot check in new files, history gone (using Mercurial with Netbeans)

Matt Mackall mpm at selenic.com
Wed Sep 14 21:59:31 UTC 2011


On Wed, 2011-09-14 at 18:42 -0300, Holger M. wrote:
> On Wed, Sep 14, 2011 at 13:14, Matt Mackall <mpm at selenic.com> wrote:
> > On Wed, 2011-09-14 at 10:27 -0300, Holger M. wrote:
> >> On Tue, Sep 13, 2011 at 19:07, Matt Mackall <mpm at selenic.com> wrote:
> >> > On Tue, 2011-09-13 at 18:59 -0300, Holger M. wrote:
> >> >> On Tue, Sep 13, 2011 at 18:40, Matt Mackall <mpm at selenic.com> wrote:
> >> >> > On Tue, 2011-09-13 at 14:17 -0700, PeerBr wrote:
> >> >> >> Dear all,
> >> >> >>
> >> >> >> I've been using Mercurial with Netbeans 7.0.1 (Windows 7 SP1) for almost two
> >> >> >> years and have enjoyed it very much. I have never used the console, however
> >> >> >> (except once for setting up Netbeans, if I recall correctly). Recently,
> >> >> >> something (I don't know what) has gone wrong and I can't check in anything
> >> >> >> anymore. Symptoms:
> >> >> >>
> >> >> >> - In Netbeans, all files and folders appear as new.
> >> >> >> - In Netbeans, no file or folder has any history. Error message on getting
> >> >> >> history is: "abort: cannot follow nonexistent file"
> >> >> >> - In Netbeans, I cannot check in any file. Error message on checking in is:
> >> >> >> "Exception exceptions.WindowsError:(183, 'Eine Datei kann nicht erstellt
> >> >> >> werden, wenn sie bereits vorhanden ist') in <bound method lock.__del__of
> >> >> >> <mercurial.lock.lock object at 0x009C54B0> > ignored". I did not mess around
> >> >> >> with the directories of Netbeans, Mercurial or my project, and that problem
> >> >> >> never happened before. There seems to be nothing else wrong with my
> >> >> >> computer.
> >> >> >
> >> >> > Please report the output of "hg summary" in your repository.
> >> >> >
> >> >> > (FYI, there are lots of GUI wrappers around Mercurial. We're not
> >> >> > familiar with most of them and don't directly support any of them on
> >> >> > this list. I'm still not really sure what a 'netbean' is.)
> >> >> >
> >> >> > --
> >> >> > Mathematics is the supreme nostalgia of our time.
> >> >>
> >> >> Hi Matt,
> >> >>
> >> >> Thank you for your quick answer.
> >> >>
> >> >> "hg summary" gives me an "unknown command" message (my version is 1.2.1).
> >> >
> >> > That's 2.5 years old now.
> >> >
> >> > What do 'hg parents' and 'hg tip' say?
> >> >
> >> >> "hg status" returns a whopping list of all files, each with a question
> >> >> mark, à la
> >> >> "? c:\Program Files\xampp\htdocs\mx\logo.png".
> >> >
> >> > Really, there's a drive letter?
> >> >
> >> >> Netbeans is an IDE originally developed for Java.
> >> >
> >> > My point is you can't expect us to have any familiarity with random
> >> > IDEs.
> >>
> >> Hi Matt,
> >
> > [please keep the list cc:ed]
> >
> >> I've updated Mercurial to 1.9.2, the output is as follows:
> >
> >
> >
> >> C:\Program Files\Mercurial>hg parents "c:\Program Files\xampp\htdocs"
> >> win32text is deprecated: http://mercurial.selenic.com/wiki/Win32TextExtension
> >> abort: '.' not found in manifest!
> >>
> >> C:\Program Files\Mercurial>hg parents "c:\Program Files\xampp\htdocs"
> >> win32text is deprecated: http://mercurial.selenic.com/wiki/Win32TextExtension
> >> abort: '.' not found in manifest!
> >>
> >> C:\Program Files\Mercurial>hg tip "c:\Program Files\xampp\htdocs"
> >> win32text is deprecated: http://mercurial.selenic.com/wiki/Win32TextExtension
> >> hg tip: invalid arguments
> >>
> >> C:\Program Files\Mercurial>hg summary "c:\Program Files\xampp\htdocs"
> >> win32text is deprecated: http://mercurial.selenic.com/wiki/Win32TextExtension
> >> hg summary: invalid arguments
> >
> > That's creative. First cd into your repository and then run the commands
> > without args.
> 
> Thanks for the hint. I didn't know I could run hg anywhere. Here goes
> the output, makes more sense now (I hope):

> C:\Program Files\xampp\htdocs>hg summary
> parent: -1:000000000000  (no revision checked out)
> branch: default
> commit: 49 added, 6425 unknown (new branch head)
> update: 1653 new changesets (update)

Here's your problem: you have no revision checked out.

> C:\Program Files\xampp\htdocs>hg tip
> changeset:   1652:9b992da41ac5
> tag:         tip
> parent:      -1:000000000000
> user:        Holger <holger at ...>
> date:        Wed Aug 31 23:53:37 2011 -0300
> summary:     Why do I have to check-in everything again?

And it seems you encountered this problem recently.. and brute-forced
your way through it. Now you've made a serious mess, as this latest
commit is unrelated to everything else in the repository.

Since you've managed to do this twice now, this sounds like a UI
interaction issue to take up with the Netbeans folks.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list