[ditrack commit] r1240 - in src/trunk: DITrack/Command tests/cmd-act/local-mode.tc

Vlad Skvortsov vss at 73rus.com
Thu Feb 1 17:43:43 PST 2007


gli at ditrack.org wrote:
> Author: gli
> Date: 2007-02-01 01:18:25 -0800 (Thu, 01 Feb 2007)
> New Revision: 1240
>
> Modified:
>    src/trunk/DITrack/Command/act.py
>    src/trunk/tests/cmd-act/local-mode.tc/test.py
> Log:
> fixing i#119. 'act' on local issues is now forbidden
>
> Modified: src/trunk/DITrack/Command/act.py
> ===================================================================
> --- src/trunk/DITrack/Command/act.py	2007-02-01 07:00:57 UTC (rev 1239)
> +++ src/trunk/DITrack/Command/act.py	2007-02-01 09:18:25 UTC (rev 1240)
> @@ -74,6 +74,10 @@
>                  # Diagnostics printed by issue_by_id().
>                  pass
>  
> +            if (db.is_valid_issue_name(id)):
>   

Redundant parenthesis here.

> +                DITrack.Util.common.err("Non-local identifier expected '%s'" % id)
> +                raise IssueIdSyntaxError, id
>   

The DITrack.Util.common.err() will not return here - it's fatal by default.

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



More information about the Dev mailing list