mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
suggest git, svn, ... if indicated, after oscerr.NoWorkingCopy
This commit is contained in:
parent
f9855a821b
commit
4bd3d515ee
1
NEWS
1
NEWS
@ -1,3 +1,4 @@
|
|||||||
|
- suggest git, svn, ... if indicated, after oscerr.NoWorkingCopy
|
||||||
- "osc cat" now auto-expands through link.
|
- "osc cat" now auto-expands through link.
|
||||||
- fixed "osc add" after "osc delete".
|
- fixed "osc add" after "osc delete".
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# and distributed under the terms of the GNU General Public Licence,
|
# and distributed under the terms of the GNU General Public Licence,
|
||||||
# either version 2, or (at your option) any later version.
|
# either version 2, or (at your option) any later version.
|
||||||
|
|
||||||
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
from osc import oscerr
|
from osc import oscerr
|
||||||
@ -84,8 +85,15 @@ def run(prg):
|
|||||||
print >>sys.stderr, 'Use "osc repairlink" to fix merge conflicts.\n'
|
print >>sys.stderr, 'Use "osc repairlink" to fix merge conflicts.\n'
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
except (oscerr.NoWorkingCopy, oscerr.WorkingCopyWrongVersion), e:
|
except oscerr.WorkingCopyWrongVersion, e:
|
||||||
print >>sys.stderr, e
|
print >>sys.stderr, e
|
||||||
|
|
||||||
|
except oscerr.NoWorkingCopy, e:
|
||||||
|
print >>sys.stderr, e
|
||||||
|
if os.path.isdir('.git'): print >>sys.stderr, "Current directory looks like git."
|
||||||
|
if os.path.isdir('.hg'): print >>sys.stderr, "Current directory looks like mercurial."
|
||||||
|
if os.path.isdir('.svn'): print >>sys.stderr, "Current directory looks like svn."
|
||||||
|
if os.path.isdir('CVS'): print >>sys.stderr, "Current directory looks like cvs."
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
except HTTPError, e:
|
except HTTPError, e:
|
||||||
|
Loading…
Reference in New Issue
Block a user