Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

merge with crew

Changeset 8f19f0b9c52c

Parents 3039e50ebdd7

Parents 74b21b770955

by Adrian Buehlmann

Changes to 4 files · Browse files at 8f19f0b9c52c Showing diff from parent 3039e50ebdd7 74b21b770955 Diff from another changeset...

 
122
123
124
125
 
 
126
127
128
 
131
132
133
134
135
 
 
136
137
138
 
122
123
124
 
125
126
127
128
129
 
132
133
134
 
 
135
136
137
138
139
@@ -122,7 +122,8 @@
  taglist = hglib.toutf(', '.join(tags))   tstr = ''   for tag in tags: - tstr += '<span background="#ffffaa"> %s </span> ' % tag + tstr += '<span color="%s" background="%s"> %s </span> ' % \ + ('black', '#ffffaa', tag)     # show branch names per hgweb's logic   branches = webutil.nodebranchdict(self.repo, ctx) @@ -131,8 +132,8 @@
  branchstr = ''   for branch in branches:   branchstr += branch['name'] - bstr += '<span background="#aaffaa"> %s </span> ' % \ - branch['name'] + bstr += '<span color="%s" background="%s"> %s </span> ' % \ + ('black', '#aaffaa', branch['name'])   for branch in inbranches:   branchstr += branch['name']  
Change 1 of 1 Show Entire File hggtk/​merge.py Stacked
 
101
102
103
104
105
106
107
 
 
 
 
 
108
109
110
 
111
112
 
 
113
114
 
115
116
117
 
101
102
103
 
 
 
 
104
105
106
107
108
109
110
 
111
112
 
113
114
115
 
116
117
118
119
@@ -101,17 +101,19 @@
  summary = ctx.description().replace('\0', '')   summary = summary.split('\n')[0]   escape = gobject.markup_escape_text - desc = '<b>rev</b>\t\t: %s\n' % escape(revstr) - desc += '<b>summary</b>\t: %s\n' % escape(summary[:80]) - desc += '<b>user</b>\t\t: %s\n' % escape(ctx.user()) - desc += '<b>date</b>\t\t: %s\n' % escape(hglib.displaytime(ctx.date())) + desc = '<b>' + _('rev') + '</b>\t\t: %s\n' % escape(revstr) + desc += '<b>' + _('summary') + '</b>\t: %s\n' % escape(summary[:80]) + desc += '<b>' + _('user') + '</b>\t\t: %s\n' % escape(ctx.user()) + desc += '<b>' + _('date') + '</b>\t\t: %s\n' \ + % escape(hglib.displaytime(ctx.date()))   node = repo.lookup(revid)   tags = repo.nodetags(node) - desc += '<b>branch</b>\t: ' + escape(ctx.branch()) + desc += '<b>' + _('branch') + '</b>\t: ' + escape(ctx.branch())   if tags: - desc += '\n<b>tags</b>\t\t: ' + escape(', '.join(tags)) + desc += '\n<b>' + _('tags') + '</b>\t\t: ' \ + + escape(', '.join(tags))   if node not in repo.heads(): - desc += '\n<b>Not a head revision!</b>' + desc += '\n<b>' + _('Not a head revision!') + '</b>'   return revstr, hglib.toutf(desc)     def set_notify_func(self, func, *args):
 
5
6
7
 
 
 
8
9
10
 
5
6
7
8
9
10
11
12
13
@@ -5,6 +5,9 @@
 #include "StringUtils.h"  #include <olectl.h>   +#define INITGUID +#include <initguid.h> +  DEFINE_GUID(CLSID_TortoiseHg0, 0xb456dba0L, 0x7bf4, 0x478c, 0x93, 0x7a, 0x5, 0x13, 0xc, 0x2c, 0x21, 0x2e);  DEFINE_GUID(CLSID_TortoiseHg1, 0xb456dba1L, 0x7bf4, 0x478c, 0x93, 0x7a, 0x5, 0x13, 0xc, 0x2c, 0x21, 0x2e);  DEFINE_GUID(CLSID_TortoiseHg2, 0xb456dba2L, 0x7bf4, 0x478c, 0x93, 0x7a, 0x5, 0x13, 0xc, 0x2c, 0x21, 0x2e);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
1
2
3
 
 
 
 
 
 
4
5
 
6
 
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 #ifndef _SHELL_EXT_H_  #define _SHELL_EXT_H_   -#pragma data_seg(".text") -#include <objbase.h> -#define INITGUID -#include <initguid.h> -#include <shlobj.h> -#include <shlguid.h>  #include <vector>  #include <string> -#pragma data_seg()   -#define DLLREGUNREGNAME TEXT("DLL Registerer")    enum TortoiseOLEClass  {   TORTOISE_OLE_INVALID,   TORTOISE_OLE_ADDED,   TORTOISE_OLE_MODIFIED,   TORTOISE_OLE_UNCHANGED,   TORTOISE_OLE_IGNORED,   TORTOISE_OLE_NOTINREPO,  };    //  // Factory  //  class CDllRegSxClassFactory : public IClassFactory  {   protected:   ULONG m_cRef;   TortoiseOLEClass myclassToMake;     public:   CDllRegSxClassFactory(TortoiseOLEClass);   ~CDllRegSxClassFactory();     public:   STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);   STDMETHODIMP_(ULONG) AddRef();   STDMETHODIMP_(ULONG) Release();     STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR *);   STDMETHODIMP LockServer(BOOL);  };    typedef CDllRegSxClassFactory *LPCSHELLEXTCLASSFACTORY;    //  // Shell extensions  //  class CShellExt :   public   IContextMenu3,   IShellIconOverlayIdentifier,   IShellExtInit  {   TortoiseOLEClass myTortoiseClass;     protected:   ULONG m_cRef;   LPDATAOBJECT m_pDataObj;     LPTSTR *m_ppszFileUserClickedOn; // [MAX_PATH]   std::vector<std::string> myFiles;   std::string myFolder;   void CShellExt::DoHgtk(const std::string &);     public:   CShellExt(TortoiseOLEClass);   ~CShellExt();     // IUnknown   STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR *ppv);   STDMETHODIMP_(ULONG) AddRef();   STDMETHODIMP_(ULONG) Release();     // IContextMenu3   STDMETHODIMP QueryContextMenu(HMENU hMenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags);   STDMETHODIMP InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi);   STDMETHODIMP GetCommandString(UINT_PTR idCmd, UINT uFlags, UINT FAR *reserved, LPSTR pszName, UINT cchMax);   STDMETHODIMP HandleMenuMsg(UINT uMsg, WPARAM wParam, LPARAM lParam);   STDMETHODIMP HandleMenuMsg2(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *pResult);     // IShellIconOverlayIdentifier   STDMETHODIMP GetOverlayInfo(LPWSTR pwszIconFile, int cchMax, int *pIndex, DWORD *pdwFlags);   STDMETHODIMP GetPriority(int *pPriority);   STDMETHODIMP IsMemberOf(LPCWSTR pwszPath, DWORD dwAttrib);     // IShellExtInit   STDMETHODIMP Initialize(LPCITEMIDLIST pIDFolder, LPDATAOBJECT pDataObj, HKEY hKeyID);   };    typedef CShellExt *LPCSHELLEXT;    #endif // _SHELL_EXT_H_