~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/browser.js

  • Committer: Matt Giuca
  • Date: 2010-02-23 05:18:48 UTC
  • Revision ID: matt.giuca@gmail.com-20100223051848-8kxdsitlvkeyl4gt
Added handlers and documentation for Subversion status 'ignored' (we call them 'Temporary file (ignored)'. This was previously handled as an 'unknown status'. Ignored files now can't have svn actions done on them either. This fixes Launchpad bug #526220.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
/* Mapping SVN status to icons, just the file's basename */
62
62
svn_icons = {
63
63
    "unversioned": "unversioned.png",
 
64
    "ignored": null,                    /* Supposed to be innocuous */
64
65
    "normal": "normal.png",
65
66
    "added": "added.png",
66
67
    "missing": "missing.png",
74
75
/* Mapping SVN status to "nice" strings */
75
76
svn_nice = {
76
77
    "unversioned": "Temporary file",
 
78
    "ignored": "Temporary file (ignored)",
77
79
    "normal": "Permanent file",
78
80
    "added": "Temporary file (scheduled to be added)",
79
81
    "missing": "Permanent file (missing)",
518
520
 */
519
521
function svnstatus_versioned(svnstatus)
520
522
{
521
 
    return svnstatus != "unversioned";
 
523
    return svnstatus != "unversioned" && svnstatus != "ignored";
522
524
}
523
525
 
524
526
/** Displays a download link to the binary file.