new_bug_path is expressed as an absolute path; solves a bug with adding issue from subdirectories
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed Feb 08 11:01:33 2012 -0800 (2012-02-08)
changeset 6906875c471689
parent 68 88c088722a30
child 70 bd35d5913c9f
new_bug_path is expressed as an absolute path; solves a bug with adding issue from subdirectories
artemis/artemis.py
     1.1 --- a/artemis/artemis.py	Thu Apr 28 08:50:31 2011 -0700
     1.2 +++ b/artemis/artemis.py	Wed Feb 08 11:01:33 2012 -0800
     1.3 @@ -188,7 +188,7 @@
     1.4          outer.add_header('Message-Id', "<%s-%s-artemis@%s>" % (issue_id, _random_id(), socket.gethostname()))
     1.5          outer.add_header('References', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
     1.6          outer.add_header('In-Reply-To', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
     1.7 -    new_bug_path = issue_fn[(len(repo.root)+1):] + '/new/' + mbox.add(outer) # + 1 for the trailing /
     1.8 +    new_bug_path = issue_fn + '/new/' + mbox.add(outer)
     1.9      commands.add(ui, repo, new_bug_path)
    1.10  
    1.11      # Fix properties in the root message