This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137470 - files from private folder don't have status ignored
Summary: files from private folder don't have status ignored
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 18:00 UTC by David Vancouvering
Modified: 2011-10-10 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2008-06-17 18:00:47 UTC
Sometimes I want to see what changes have come into the repository as a whole, not for a specific project, directory or
file.  But if I try Versioning->Mercurial->Show History without having a selected project I get an error:

ERROR Command failed:
Command: [/usr/local/bin/hg, -v, log, --follow, --repository, /Users/David/code/netbeans/trunk/main, --debug, --date,
2008-06-10 to 2008-06-17,
--template=rev:{rev}\nauth:{author}\ndesc:{desc}\ndate:{date|hgdate}\nid:{node|short}\nparents:{parents}\nfile_mods:{files}\nfile_adds:{file_adds}\nfile_dels:{file_dels}\nfile_copies:{file_copies}\nendCS:\n,
/Users/David/code/netbeans/trunk/main/db.mysql/nbproject/private/private.properties]
Output: [abort: can only follow copies/renames for explicit file names]
Comment 1 David Vancouvering 2008-06-17 18:04:30 UTC
Oh, I see, it's trying to do history on the currently open file (private.properties in my case).  But when I close all
documents and try it, Show History is disabled.

How do I see history for the entire repository in NetBeans, rather than for a specific file?
Comment 2 Tomas Stupka 2008-06-18 09:41:01 UTC
> How do I see history for the entire repository in NetBeans, rather than for a specific file?
mount the relevant folder in favorites

> ... if I try Versioning->Mercurial->Show History without having a selected project
The menu items in versioning>Mercurial should be enabled for the current selection so if there is nothing selected you shouldn't be able to invoke 'show 
history' and what troubles me even more is that the reported error appears when the given command is called for a not existing file. Strange. 
Do you remember what you have done before 'show history' and what exactly did you have selected - nothing or the 
...nbproject/private/private.properties file? 

what build do you use?

thanks
Comment 3 Tomas Stupka 2008-06-19 19:10:17 UTC
hi,

any update on this?
Comment 4 David Vancouvering 2008-06-19 19:28:26 UTC
Hi, thanks for pinging me.  I am sorry, I have been very busy.

First of all, I have no idea what to do to "mount the relevant folder in favorites" - I think you are talking about a
feature in NB that I was not aware of.

In terms of your questions:

- Do you remember what you have done before 'show history' 

I just opened NB, and it opened files from a previous session, and for whatever reason private.properties was the
focused file.

- and what exactly did you have selected - nothing or the 
...nbproject/private/private.properties file? 

I didn't select anything, just went straight to the Versioning top-level menu

- what build do you use?

I was using a build out of my sandbox, from a pull of no more than a week ago.
Comment 5 Tomas Stupka 2008-06-19 19:38:34 UTC
> First of all, I have no idea what to do to "mount the relevant folder in favorites"
- open the "favorites view" - window > favorites
- right click the into the opened view and choose "Add to favorites"
- navigate to the folder of you choice - the netbeans main dir in our case
- all relevant VCS actions should be available for that folder 

> I just opened NB, and it opened files from a previous session, and for whatever reason private.properties was the focused file.
i see 

thanks
Comment 6 Tomas Stupka 2008-06-19 20:06:56 UTC
could reproduce 
the private.properties file from nbproject/private doesn't have the status ignored - hence various actions are enabled which shouldn't be. 
Running the log command for an unversioned file causes the reported error.

seems to be related to #127392
Comment 7 Tomas Stupka 2008-06-23 09:37:23 UTC
calling hisotry for unverioned files doesn't make sense at all. downgrading to p4
Comment 8 David Vancouvering 2008-06-23 17:55:09 UTC
I agree, but the error message is very confusing.  Please at least fix the error message so the user has a clue what
he's doing wrong.  Better yet, *disable* history on a file that is not being managed by the SCM.
Comment 9 Tomas Stupka 2008-06-23 19:59:03 UTC
> Better yet, *disable* history on a file that is not being managed by the SCM.
agree. this is way this issue is still open...