[ditrack commit] r1148 - src/trunk/DITrack/Command

Vlad Skvortsov vss at 73rus.com
Tue Jan 23 22:23:08 PST 2007


gli at ditrack.org wrote:
> Author: gli
> Date: 2007-01-23 01:17:48 -0800 (Tue, 23 Jan 2007)
> New Revision: 1148
>
> Modified:
>    src/trunk/DITrack/Command/new.py
> Log:
> fixing issue #85. "new" automatically commit an issue unless -l is specified
>   

[skipped]
> @@ -106,4 +106,11 @@
>              version_due=due_version,
>              description=descr)
>  
> -        print "New issue added:", name
> +        # check, if we should commit new issue
> +        if opts.var["local_mode"]:
> +            id = local_id
> +        else:
> +            id = db.commit_issue(local_id)
> +
> +
> +        print "New issue added:", id
>   

I suggest printing out two messages: one for the local name assigned, 
another for the firm name (as it's currently done in 'act'). This is 
extra diagnostics, which might be helpful if something goes wrong while 
committing.

-- 
Vlad Skvortsov, vss at 73rus.com, http://vss.73rus.com



More information about the Dev mailing list