|
Lines 251-259
class SCM:
a/WebKitTools/Scripts/modules/scm.py_sec1
|
| 251 |
def clean_working_directory(self): |
251 |
def clean_working_directory(self): |
| 252 |
raise NotImplementedError, "subclasses must implement" |
252 |
raise NotImplementedError, "subclasses must implement" |
| 253 |
|
253 |
|
| 254 |
def update_webkit(self): |
|
|
| 255 |
raise NotImplementedError, "subclasses must implement" |
| 256 |
|
| 257 |
def status_command(self): |
254 |
def status_command(self): |
| 258 |
raise NotImplementedError, "subclasses must implement" |
255 |
raise NotImplementedError, "subclasses must implement" |
| 259 |
|
256 |
|
|
Lines 362-370
class SVN(SCM):
a/WebKitTools/Scripts/modules/scm.py_sec2
|
| 362 |
def clean_working_directory(self): |
359 |
def clean_working_directory(self): |
| 363 |
self.run_command(['svn', 'revert', '-R', '.']) |
360 |
self.run_command(['svn', 'revert', '-R', '.']) |
| 364 |
|
361 |
|
| 365 |
def update_webkit(self): |
|
|
| 366 |
self.run_command(self.script_path("update-webkit")) |
| 367 |
|
| 368 |
def status_command(self): |
362 |
def status_command(self): |
| 369 |
return ['svn', 'status'] |
363 |
return ['svn', 'status'] |
| 370 |
|
364 |
|
|
Lines 458-468
class Git(SCM):
a/WebKitTools/Scripts/modules/scm.py_sec3
|
| 458 |
if self.rebase_in_progress(): |
452 |
if self.rebase_in_progress(): |
| 459 |
self.run_command(['git', 'rebase', '--abort']) |
453 |
self.run_command(['git', 'rebase', '--abort']) |
| 460 |
|
454 |
|
| 461 |
def update_webkit(self): |
|
|
| 462 |
# FIXME: Call update-webkit once https://bugs.webkit.org/show_bug.cgi?id=27162 is fixed. |
| 463 |
log("Updating working directory") |
| 464 |
self.run_command(['git', 'svn', 'rebase']) |
| 465 |
|
| 466 |
def status_command(self): |
455 |
def status_command(self): |
| 467 |
return ['git', 'status'] |
456 |
return ['git', 'status'] |
| 468 |
|
457 |
|