1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00
Commit Graph

665 Commits

Author SHA1 Message Date
Marcus Huewe
d8723ef94a - get_source_file_diff returns a list instead of a str 2010-08-31 16:13:16 +02:00
Marcus Huewe
f5c5ee10d0 - update: take self.meta into consideration 2010-08-31 15:37:53 +02:00
Marcus Huewe
0a169fb7d7 - fix for commit a05a2a0a4f 2010-08-31 15:37:11 +02:00
Michal Vyskocil
a05a2a0a4f read_filemeta: create the default _files if not exists 2010-08-31 14:52:46 +02:00
Michal Vyskocil
c30fc87c55 explicitly mark global variables 2010-08-31 14:43:43 +02:00
Marcus Huewe
1fb6c3c48c - request_interactive_review: print request again (after displaying the diff) 2010-08-31 14:15:04 +02:00
Marcus Huewe
9c5c329a04 - get_diff: don't diff binary files 2010-08-31 13:30:37 +02:00
Marcus Huewe
3cf8a5bf88 - fixed commit (Package class)
- use "self.rev" when calling update_local_filesmeta (otherwise we might get a newer revision)
- write addlist after commit
2010-08-31 13:30:37 +02:00
Marcus Huewe
c4ceb7f700 - adjusted store_write_string calls so that the storefile ends with a newline
- adjusted testcase fixtures for this change
2010-08-31 13:30:37 +02:00
Marcus Huewe
2ffd46a9c2 - get rid of the init_package_dir mess
moved code into the staticmethod "init_package" of the Package class.
Cleaned up "checkout_package"
2010-08-31 13:30:37 +02:00
Marcus Huewe
9e8eeb8590 - removed old "make_diff", "comparePac" methods + old status code 2010-08-31 13:30:37 +02:00
Marcus Huewe
ca61d08bf3 - added new "get_diff" method to the Package class
- restructured "get_source_file_diff"
- commandline.py: adapted commands so that they use the new "get_diff" method
2010-08-31 13:30:36 +02:00
Marcus Huewe
d90228a7e3 - support a revert of a missing file which was added to the wc 2010-08-31 13:30:36 +02:00
Marcus Huewe
8050671870 - fixed logic errors
- fixed shutil.copyfile calls (use <filename>.copy+rename)
2010-08-31 13:30:36 +02:00
Marcus Huewe
7d8aeae6d8 - beautify 2010-08-31 13:30:36 +02:00
Marcus Huewe
9c0076d726 - added testcases for "def revert" 2010-08-31 13:30:36 +02:00
Marcus Huewe
3fefbfbc5f - added some comments for known bugs 2010-08-31 13:30:36 +02:00
Marcus Huewe
88a961cae4 - rewrote addfile() and delete_file() methods from the Package class (for the details see below)
- addfile():
  * contains the complete logic for adding a file (=> simplified addFiles(...))
  * semantic fixes
- delete_file():
  * semantic fixes
- different handling of newly added/replaced files:
  * added/replaced files are tracked in the .osc/_to_be_added file
- introduced new file state 'R': 'R' == "replaced"
  * usecase: osc rm <file>; osc add <file> => new state is 'R'
  * conceptually 'R' is equal to 'A'
- adapted revert() to support the new state (+ some other minor fixes)
- added testcases for addfile() and delete_file()
2010-08-31 13:30:36 +02:00
Marcus Huewe
a17fbdcff1 - restore storefile in case it is lost (for whatever reason) 2010-08-31 13:30:35 +02:00
Marcus Huewe
7fc24f70a1 - bye bye old code 2010-08-31 13:30:35 +02:00
Marcus Huewe
bfb53cf67a - raise an exception if a file is known by meta but no storefile exists 2010-08-31 13:30:35 +02:00
Marcus Huewe
b3d638774c - do_revert: initial version 2010-08-31 13:30:35 +02:00
Marcus Huewe
7ca255cca0 - todo_send and todo_delete are no longer attributes (this also fixes commit ca45955ad60fc1dac9b013ba2d7cecbb9a132c6e) 2010-08-31 13:30:35 +02:00
Marcus Huewe
334fa82d39 - delete storefile if the commit was successful 2010-08-31 13:30:35 +02:00
Marcus Huewe
d8c59c8438 - update: support special handling for _service: files 2010-08-31 13:30:35 +02:00
Marcus Huewe
58ca66a417 - update: always use 'rev' query parameter when fetching files 2010-08-31 13:30:35 +02:00
Marcus Huewe
e91475508e - support limit_size parameter during update
also added testcases
2010-08-31 13:30:35 +02:00
Marcus Huewe
5447dfbf12 - initial version of the new update mechanism
TODO: special handling for service files + respect limit_size parameter
2010-08-31 13:30:35 +02:00
Marcus Huewe
e74159754c - bump version to 0.129git 2010-08-30 19:45:53 +02:00
Marcus Huewe
73f4adcba6 - bump version to 0.129 2010-08-30 19:36:52 +02:00
Michal Čihař
48da9e2b71 Print http debugging to stderr. 2010-08-30 13:13:20 +02:00
Michal Čihař
c88d7fc4a3 Redirect debug output to stderr. 2010-08-30 13:06:17 +02:00
Marcus Huewe
9ac19b2c22 - request_interactive_review: don't abort if the diff fails due to status 404 2010-08-27 12:44:10 +02:00
Marcus Huewe
2a18eff50b - _build_opener fail if the url is no apiurl 2010-08-26 14:14:23 +02:00
Marcus Huewe
2cb03b4efe - fixed "logic" issue in init_basicauth
the old code didn't turn off the ssl checking if conf['apiurl']
was configured with "sslcertk = 1".
Example:
~/.oscrc:
[https://foo]
sslcertk = 0
...
[https://main]
sslcertk = 1
...
[general]
apiurl = https://main

if you send a request to https://foo (and conf['apiurl'] == https://main)
it'll fail because the ssl checking isn't disabled.
2010-08-26 13:06:00 +02:00
Marcus Huewe
2b3fdb4588 - fixed copy_pac 2010-08-26 12:51:45 +02:00
Marcus Huewe
af035f683e - added new methods "__write_storelist()" and "store_readlist()"
this simplifies write_deletelist(), write_conflictlist(), read_tobedeleted(),
read_inconflict()
2010-08-24 10:23:11 +02:00
Danny Kukawka
5a49daa69a fix warnings from pychecker
Fixed several warnings from pychecker as e.g.:
- (XY): shadows builtin
- Local variable (XY) not used
2010-08-20 14:34:41 +02:00
Marcus Huewe
4580a67e69 - request_interactive_review: display current action when opening the editor 2010-08-19 11:40:49 +02:00
Danny Kukawka
2aede1039f changed change_request_state() to return only the status code
Changed change_request_state() to return only the status code,
print out some more usable message for result of change_request_state()
where needed.
2010-08-18 16:17:34 +02:00
Marcus Huewe
be425d3261 - use ExtRuntimeError instead of 'sys.exit' 2010-08-16 16:40:16 +02:00
Marcus Huewe
e209766084 - renamed "RuntimeError" to "ExtRuntimeError" to avoid confusion with python's "RuntimeError" class
just a "cosmetic" changes
2010-08-16 16:27:00 +02:00
Marcus Huewe
322a385f7a - strip at the correct place... 2010-08-16 13:53:52 +02:00
Marcus Huewe
77efad5eb8 - request_interactive_review: strip() user input 2010-08-16 13:51:19 +02:00
Juergen Weigert
b3fb8b51fb tabs to spaces. Damit kein Unglueck nicht geschicht. Hello Danny. 2010-08-13 00:30:05 +02:00
Marcus Huewe
1a5023ff28 - simplify + always remove tmpfile 2010-08-11 22:50:10 +02:00
Marcus Huewe
598a458718 - fixed #613513 ("osc copypac to another OBS instance fails if source package uses links")
now links are always expanded if we copy across different buildservice instances
2010-08-11 22:42:16 +02:00
Marcus Huewe
8b89a7c225 - removed old cruft 2010-08-11 18:08:54 +02:00
Marcus Huewe
e29b227b5b - do_status: added '--show-excluded' option to show all files (except the store dir)
Additionally "osc st" doesn't show dirs anymore if it's called from
a package wc because dirs cannot be added to a package
2010-08-11 18:05:12 +02:00
Marcus Huewe
2347e45a5c - fixed init_package_dir (the whole init_*_dir concept needs to be rewritten) 2010-08-11 12:50:53 +02:00