Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "User talk:Charley.wang.gmail.com"

Line 54: Line 54:
 
| No "/" in pattern, match filename<br>
 
| No "/" in pattern, match filename<br>
 
|-
 
|-
| <br>
+
| <br>  
 
| &nbsp;!/test.stp <br>/test.stp  
 
| &nbsp;!/test.stp <br>/test.stp  
 
| /test.stp<br>  
 
| /test.stp<br>  
Line 104: Line 104:
 
| <br>
 
| <br>
 
|-
 
|-
| <br>
+
| <br>  
 
| /new/a/b1  
 
| /new/a/b1  
 
| /src/new/a/b1/*  
 
| /src/new/a/b1/*  
Line 121: Line 121:
 
| x  
 
| x  
 
|  
 
|  
/a  
+
/a <br>
 
+
/a.c (in /a)
!/a.c (in /a)<br>
+
 
+
 
! /a/a.c  
 
! /a/a.c  
 
!  
 
!  
Normally the negation in /a would<br>have higher priority, but the folder<br>ignore takes special priority.
+
Normally the negation in /a would<br>have higher priority, but the folder<br>ignore takes special priority.  
  
 
|}
 
|}
Line 152: Line 150:
 
| Ends with "/", only match dirs
 
| Ends with "/", only match dirs
 
|-
 
|-
| <br>
+
| <br>  
 
|  
 
|  
 
/*.st?<br>!/test.stp  
 
/*.st?<br>!/test.stp  
Line 164: Line 162:
 
| Comment
 
| Comment
 
|-
 
|-
| <br>
+
| <br>  
 
| &nbsp;!/a.c  
 
| &nbsp;!/a.c  
 
/src/a.c  
 
/src/a.c  
Line 171: Line 169:
 
| Where&nbsp;!/a.c is in src/.gitignore
 
| Where&nbsp;!/a.c is in src/.gitignore
 
|-
 
|-
| <br>
+
| <br>  
 
| &nbsp;!/test.stp  
 
| &nbsp;!/test.stp  
 
/test.stp <br>!/test.stp  
 
/test.stp <br>!/test.stp  

Revision as of 11:17, 5 July 2010

EGIt/JGit ignore testing


Successfully ignored


Tested Pattern
Target
Notes
x /*.st?
/test.stp

x /*.sta[0-9]
/test.sta1

x /*/*.c
/src/a.c

x /src/
/src
Where /src is a directory
x /src/
/src/new/a.c

x /src/
/src/a.c

x .stp
/test.stp
No "/" in pattern, match filename
x .stp
/src/test.stp
No "/" in pattern, match filename

 !/test.stp
/test.stp
/test.stp

x /src/new
/src/new/
Ignore folder
x /src/new
/src/new/a.c
Ignore contents of folder
x /src/new/
/src/new/a.c

x src
/src/a.c

x src
/src/new/a.c

x src /new/src/a.c
x new /src/new/a.c Ignore folder (name-only match)
x  ?rc /src/a.c
x  ?rc /src/new/a.c

/new/a/b1 /src/new/a/b1/*
x b1 /a/b1/*
x b? /a/b1/*
x

/a
/a.c (in /a)

/a/a.c

Normally the negation in /a would
have higher priority, but the folder
ignore takes special priority.


Successfully not ignored (File added to parent's .gitignore)


Tested Pattern Target Notes
x /*.c /src/a.c * should not expand to '/'
x /src/new/asdf/ /src/new/asdf Ends with "/", only match dirs

/*.st?
!/test.stp

/test.stp Pattern + higher priority negation
x #/test.stp /test.stp Comment

 !/a.c

/src/a.c

/src/a.c Where !/a.c is in src/.gitignore

 !/test.stp

/test.stp
!/test.stp

/test.stp Negation chaining

Mylyn Custom Transitions

Principle: As per contributor guidelines, avoid changing Mylyn code whereever possible. In case of failure, fall back on Mylyn's original behaviour (even if that behaviour will not work)


Customization cases:

1. User changes workflow only (via editworkflow.cgi)

    - Can use original BugzillaOperation enum

    - Certain transitions are version-specific (e.g. reassignbycomponent) -- will have to add verifiers

2. User changes name of statuses in bug_status table

3. Other special user-settings -- e.g. the DUPLICATE action can have different end bug_statuses, unconfirmed status may or may not exist


'Proposed 'Workflow:

Front-end: User has selection box in Repository Preferences to choose a Transition Descriptor File (TDF), and a checkbox to specify that custom workflows are in use. By default, none of these are checked.

Back-end: If custom workflows are in use, Mylyn checks if TDF exists & is valid. If not, Mylyn then checks if XMLRPC is available & is valid. If either the TDF or XMLRPC are valid, parse their output and figure out the transition table. Render everything according to the transition table. If no custom transition table is available, use Mylyn's original default behaviour.


Plan:

Add IBugzillaOperation with two implementations -- the default BugzillaOperation enum that is already in use, and a new CustomBugzillaOperation. In addition to the current fields in BugzillaOperation, CustomBugzillaOperation needs to contain: Server String (i.e. operation that must be sent to the server when the user hits Submit), Version Verifier.

Use a TransitionManager that checks if a transition descriptor file or xmlrpc Bug.fields is available and uses available information to create a list of valid transitions. If the file or xmlrpc Bug.fields are not available, fall back on Mylyn default behaviour.


Approaching completion:

Patch for customization case #1


Next step:

JUnit testing of current patch. Fix existing issues. Add Transition Descriptor File selection box to Repository Preferences. Add XMLRPC communication.


Future:

I have a plan and a half-implemented patch for case #2, after which I will work on case #3.




Back to the top