https://bugzilla.wikimedia.org/show_bug.cgi?id=61310

       Web browser: ---
            Bug ID: 61310
           Summary: version.py does not recognize SVN checkout
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: General
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: russb...@hotmail.com
   Mobile Platform: ---

The following block starts at line 48 of pywikibot/version.py:

        _program_dir = _get_program_dir()
        if os.path.isdir(os.path.join(_program_dir, '.svn')):
            (tag, rev, date, hsh) = getversion_svn(_program_dir)
        else:
            (tag, rev, date, hsh) = getversion_git(_program_dir)

I ran this on a machine where I am still using the SVN mirror and haven't
installed git.  However, "os.path.join(_program_dir, '.svn')" does not suffice
to locate my .svn directory, because I checked out the entire "core" project,
including both trunk and branches.  The ".svn" directory therefore is in the
parent directory above _program_dir, not in _program_dir.

This causes my installation to be unable to import pywikibot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to