http://bugzilla.novell.com/show_bug.cgi?id=588624 http://bugzilla.novell.com/show_bug.cgi?id=588624#c0 Summary: osc init - sets files for deletion instead of modification Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: llipavsky@novell.com QAContact: adrian@novell.com Found By: Component Test Blocker: --- Hello, I found a weird bug in 'osc init'. reproducible - aways steps to reproduce: ~/> mkdir test && cd test test/> osc init home:llipavsky awesome Initializing . (Project: home:llipavsky, Package: awesome) test/> osc status ! awesome-3.4.4.tar.bz2 ! awesome.changes ! awesome.spec This part is ok, but when I copy (or create) some file, which is already under version control, it goes weird: test/> touch awesome.spec test/> osc st ! awesome-3.4.4.tar.bz2 ! awesome.changes D awesome.spec This should be 'M' - since the file has local modification, but definitely not 'D'! if I try the commit now, it really tries to delete the file and fails (this is from another project and another package, but exactly same happens here): Deleting ctcs2.spec Transmitting file data Traceback (most recent call last): File "/usr/bin/osc", line 21, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 46, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 308, in main return self.cmd(args) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 331, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 447, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1177, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 2299, in do_commit Package(pac).commit(msg) File "/usr/lib/python2.6/site-packages/osc/core.py", line 846, in commit self.to_be_deleted.remove(filename) ValueError: list.remove(x): x not in list We (QA automation project) don't want to use osc checkout instead of osc init, since we have our sources in subversion repository. when we submit new version, we don't want to download old version from BS (which osc checkout does), since some of our colleagues have slow network and we already have all files we need, so osc init would save a lot of time -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.