diff --git a/osc/commandline.py b/osc/commandline.py index 982e7648..a30dfb2e 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -338,6 +338,7 @@ usage: up for i in p.filenamelist: if p.status(i) == 'M': saved_modifiedfiles.append(i) + oldp = p p.update_filesmeta() p = Package(p.dir) @@ -357,7 +358,10 @@ usage: up for filename in p.filenamelist: state = p.status(filename) - if state == 'M' and filename in saved_modifiedfiles: + if p.findfilebyname(filename).md5 == oldp.findfilebyname(filename).md5: + # no merge necessary... local file is changed, but upstream isn't + pass + elif state == 'M' and filename in saved_modifiedfiles: status_after_merge = p.mergefile(filename) print statfrmt(status_after_merge, filename) elif state == 'M': diff --git a/osc/core.py b/osc/core.py index 31d940d7..47894644 100755 --- a/osc/core.py +++ b/osc/core.py @@ -27,7 +27,7 @@ exclude_stuff = [store, '.svn', 'CVS'] new_project_templ = """\ - + Short title of NewProject This project aims at providing some foo and bar. @@ -691,7 +691,7 @@ def edit_meta(prj, pac): m = show_project_meta(prj) except urllib2.HTTPError, e: if e.code == 404: - m = new_project_templ % username + m = new_project_templ % (prj, username) f = open(filename, 'w') f.write(''.join(m))